Help needed to remove blur

6 Ansichten (letzte 30 Tage)
parth jai
parth jai am 20 Jul. 2017
Bearbeitet: KSSV am 1 Aug. 2017
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 Kommentare
parth jai
parth jai am 20 Jul. 2017
first one is stock,second is output after first three lines of code and the last two are weight array and final output.
Akhilesh Thakur
Akhilesh Thakur am 31 Jul. 2017
Bearbeitet: KSSV am 1 Aug. 2017

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by