title: why weiner filter reduces only noise in my case, it is not reducing blur amount
body: <p>I am implementing weiner filtering in python which is applied on an image blurred using disk shape point spread function, i am including code of making disk shape psf and weiner filter</p>
  
  <pre><code>
  def weinerFiltering(kernel,K_const,image):
      #F(u,v)
      copy_img= np.copy(image)
      image_fft =np.fft.fft2(copy_img)
      #H(u,v)
      kernel_fft  = np.fft.fft2(kernel,s=copy_img.shape)
      #H_mag(u,v)
      kernel_fft_mag = np.abs(kernel_fft)
      #H*(u,v)
      kernel_conj = np.conj(kernel_fft)
  
      f = (kernel_conj)/(kernel_fft_mag**2 + K_const)
      return np.abs(np.fft.ifft2(image_fft*f))
  
  
  def makeDiskShape(arr,radius,centrX,centrY):
      for i in range(centrX-radius,centrX+radius):
          for j in range(centrY-radius,centrY+radius):
              if(l2dist(centrX,centrY,i,j)&lt;=radius):
                  arr[i][j]=1
      return arr/np.sum(arr)
  
  
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6Gr6w.jpg" rel="nofollow noreferrer">this is blurred and gaussian noised image</a></p>
  
  <p><a href="https://i.stack.imgur.com/CKtX4.jpg" rel="nofollow noreferrer">this is what i am getting result after weiner filtering for K value of 50</a>
  result does not seem very good, can someone help
  seems noise is reduced but amount of blurred is not, shape of disk shaped psf  matrix is 20,20 and radius is 9 which seems like <a href="https://i.stack.imgur.com/gssdV.jpg" rel="nofollow noreferrer">this</a></p>
  
  <p><strong>Update</strong>
  using power spectrum of ground truth image and noise to calculate K constant value, still i am getting strong artifacts 
  <a href="https://i.stack.imgur.com/46cUd.jpg" rel="nofollow noreferrer">this is noised and blurred image </a></p>
  
  <p><a href="https://i.stack.imgur.com/Ew08v.jpg" rel="nofollow noreferrer">this is result after using power specturm in place of a constant K value</a> </p>