Help needed to remove blur
6 次查看(过去 30 天)
显示 更早的评论
I ran the following code for it:
i=imread('1.jpg');
[j p]=deconvblind(i,ones(15,15));
imshow(j);
and it resulted into it:
https://ibb.co/dxQauk
I estimated the PSF of ones(15,15) by following the help section of matlab. It says "To determine the size of the PSF, examine the blurred image and measure the width of a blur (in pixels) around an obviously sharp object". So I took the brightest spot there and calculated the distance in pixels between the outer bright edge of spot and the outer edge of blurred or "fading" edge. It was close to 17 pixels. (This is how you do it, right?) In that output image,do i need to to change the PSF? I can't figure out whether it is ringing effect or a bad PSF. I considered it ringing and went on to create a weight array (as demonstrated by help section) with the following code:
WEIGHT = edge(i,'sobel',.01);
se = strel('disk',4,0);
WEIGHT = 1-double(imdilate(WEIGHT,se));
[J P] = deconvblind(i,ones(15,15),30,[],WEIGHT);
The final weight array and output images were:
https://ibb.co/g36quk
https://ibb.co/nDmOEk
Needless to say, its a bad recreation. Thank you so much for reading this long post! Please guide me what to do next. I tried varying various parameters but nothing changed or maybe I don't fully understand how this stuff works. Thank you for reply.
5 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



