title: Matlab Image Restoration using Wiener filter
body: <p>I have an image which was blurred via a horizontal motion blur.
  I have to restore it using the wiener filter.
  I did the following:</p>
  
  <pre><code>I = im2double(imread('blurred image.tif')); % Load image
  LEN = 50; 
  THETA = 0; 
  noise_var = 0.001;
  est_nsr = noise_var /var(I(:)); 
  PSF = fspecial('motion',LEN,THETA);
  wnr = deconvwnr(I,PSF, est_nsr);
  </code></pre>
  
  <p>When I look at the resotred image, it seems as if there are vertical lines that ruin the image quality, plus, there is quite a lot of noise. 
  I tried playing with the parameters but that's the best I could get.
  Am I maybe doing this wrong?</p>