資源簡(jiǎn)介
用matlab實(shí)現(xiàn)去除圖像的噪聲,效果很好,簡(jiǎn)單易行。

代碼片段和文件信息
clear;
clc;
close?all;
Im=imread(‘2_lena_corrupt.bmp‘);
Im_f=fft2(Im);
Im_fc=fftshift(Im_f)
imshow(log(abs(Im_fc))[]);
title(‘原始圖像頻譜‘);
%?Im_double=im2double(Im)*255;
%?h=fspecial(‘gaussian‘10100);
%?filter1=imfilter(Im_doubleh);
%?figure;
%?imshow(filter1[]);
%?filterU=uint8(filter1);%%轉(zhuǎn)化為uint8類(lèi)型才能直方圖均衡。
%?filter_eq=histeq(filterU);%%
%?figure;
%?imshow(filter_eq[]);
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件?????263224??2005-03-25?16:18??去除噪聲\2_lena_corrupt.bmp
?????文件????????411??2011-04-10?15:37??去除噪聲\test1_pz.m
?????目錄??????????0??2011-04-10?16:03??去除噪聲
-----------?---------??----------?-----??----
???????????????263635????????????????????3
評(píng)論
共有 條評(píng)論