Help needed to remove blur
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



