apply a 5x5 blurring filter to the image with imfilter. Attempt to deblur the result using inverse filtering with constrained division

조회 수: 4 (최근 30일)
%Im not getting any error message but also the figures are not showing up. I'm doing anyting wrong with this code?
im=imread('flower.tif');
impc=im2uint8(rgb2gray(im));
bts=impc(100:355,50:305);
imshow(bts)
ma=fspecial('motion',7,0);
bm=imfilter(bts,ma);
imshow(bm)
ma2=zeros(256,256);
ma2(1,1:7)=ma;
maf=fft2(ma2);
bmi=ifft2(fft2(bm)./maf);
fftshow(bmi,'abs')
d=0.02;
maf=fft2(ma2);maf(find(abs(maf)<d))=1;
bmi=ifft2(fft2(bm)./maf);
imshow(mat2gray(abs(bmi))*2)

답변 (0개)

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by