Matlab圖像處理——中值濾波medfilt2問題解決

程序:spa I=imread('13.jpg');%讀入圖像 imshow(I); h=imnoise(I,'salt & pepper');%爲I圖片疊加椒鹽噪聲噪聲 figure;imshow(h); w=[1 2 1;2 4 2;1 2 1]/16;%高斯模板 I5=imfilter(h,w,'corr','replicate');%高斯平滑 figure;imshow(I5); w=[1
相關文章
相關標籤/搜索