Help needed to remove blur

6 visualizaciones (últimos 30 días)
parth jai
parth jai el 20 de Jul. de 2017
Editada: KSSV el 1 de Ag. de 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 comentarios
parth jai
parth jai el 20 de Jul. de 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 el 31 de Jul. de 2017
Editada: KSSV el 1 de Ag. de 2017

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by