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

Image Analyst
Image Analyst 2017년 7월 20일
I don't want to, and shouldn't have to, go to some third party web site to see your data and images when you can attach them here.
parth jai
parth jai 2017년 7월 20일
My bad. I should have used that.
parth jai
parth jai 2017년 7월 20일
parth jai
parth jai 2017년 7월 20일
first one is stock,second is output after first three lines of code and the last two are weight array and final output.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2017년 7월 20일

편집:

2017년 8월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by