資源簡介
對圖像進行平滑處理,能夠很好的去除噪聲的干擾,銳化圖像能得到很好的效果
代碼片段和文件信息
I?=?imread(‘Miss.bmp‘);
figure(1);?
imshow(I);?title(‘Original?Image‘);
hsize=[33];
H?=?fspecial(‘average‘hsize);
smoothed?=?imfilter(IH‘replicate‘);
figure(2);
imshow(smoothed);?title(‘3*3?Smoothed?Image‘);
hsize=[55];
H?=?fspecial(‘average‘hsize);
smoothed?=?imfilter(IH‘replicate‘);
figure(3);
imshow(smoothed);?title(‘5*5?Smoothed?Image‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????371??2007-04-04?14:39??新建文件夾\average_smooth.m
?????文件??????66616??2000-07-25?04:21??新建文件夾\Miss.bmp
?????目錄??????????0??2010-10-09?22:34??新建文件夾
-----------?---------??----------?-----??----
????????????????66987????????????????????3
評論
共有 條評論