how to deblur an image?
4 次查看(过去 30 天)
显示 更早的评论
sir,i have an image and pass it through the Gaussian low pass filtering(fft2). As an output i got an image which is very much blur.now how can i remove this blurring effect from my image.i have used the "Deblurring Images Using a Regularized Filter", which is given in "demo of the matlab" but the output is not correct. Please tell me the code for deblurring the image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147673/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147675/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147676/image.jpeg)
0 个评论
回答(2 个)
Image Analyst
2013-5-9
Nevermind (yet) about deblurring - you don't even have the blurred version correct. However without your code, I can't do much, and I don't want to go searching through dozens of demos to try to figure out which one you used.
Bjorn Gustavsson
2013-5-10
编辑:Bjorn Gustavsson
2013-5-10
- You've forgotten an fftshift - that should be done once more.
- The widths of your filter and PSF should match (in a perfect world) or preferably the PSF you deblur with should be a bit narrower than the PSF of the filter (you have to work out how they are related and how to fix that.)
- Pure deconvolution is a process that will amplify noise - that's why you have all these damping terms and more complex methods. If you try to deconvolve with a wider PSF than what you used in the filter then this will be very difficult to avoid.
HTH
3 个评论
Bjorn Gustavsson
2013-5-10
- Step through your code line by line, make sure you understand why you did the fftshift where you did it, then you'll be able to see where you should do the ifftshift rather naturally.
- The PSF and the filter-kernel in the fourier domain are an Fourier transform pair.
HTH
Image Analyst
2013-5-10
Did you get it solved yet? I was going to take a look at it but it's been so long that I suspect you've already solved it and I don't want to waste my time.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!