資源簡(jiǎn)介
基于MATLAB的圖像復(fù)原程序
部分程序
%圖像復(fù)原處理
A=imread('J:\圖片\W.jpg');
psf=fspecial('motion',40,45);%運(yùn)動(dòng)模糊函數(shù)
B=imfilter(A,psf);%A圖像經(jīng)過(guò)運(yùn)動(dòng)模糊系統(tǒng)
%無(wú)噪聲運(yùn)動(dòng)模糊圖像
C=deconvwnr(B,psf);%對(duì)B進(jìn)行維納濾波
figure(1);
subplot(3,1,1);
imshow(A);
title('輸入圖像');
subplot(3,1,2);
imshow(B);
title('運(yùn)動(dòng)模糊');
subplot(3,1,3);
imshow(C);
title('無(wú)噪聲復(fù)原');
代碼片段和文件信息
評(píng)論
共有 條評(píng)論