图像锐化处理算法matlab,图像锐化matlab算法
《圖像銳化matlab算法》由會員分享,可在線閱讀,更多相關(guān)《圖像銳化matlab算法(2頁珍藏版)》請?jiān)谧x根文庫上搜索。
1、%常用圖像銳化算法clcclearclose allima=imread(132.jpg);%讀入圖像ima=rgb2gray(ima);%轉(zhuǎn)為灰度圖像 ima=double(ima);bw1 = edge(ima,sobel); %sobel算子銳化figure;subplot(121);imshow(uint8(ima);title(原始圖像);%圖像顯示subplot(122);imshow(bw1);title(sobel算子銳化);bw2 = edge(ima,prewitt);%prewitt算子銳化figure;subplot(121);imshow(uint8(ima);tit。
2、le(原始圖像);subplot(122);imshow(bw2);title(prewitt算子銳化);bw3 = edge(ima,roberts);%roberts算子銳化figure;subplot(121);imshow(uint8(ima);title(原始圖像);subplot(122);imshow(bw3);title(roberts算子銳化);bw4 = edge(ima,log);%log算子銳化figure;subplot(121);imshow(uint8(ima);title(原始圖像);subplot(122);imshow(bw4);title(log算子銳化)。
3、;bw5 = edge(ima,canny); %nny算子銳化figure;subplot(121);imshow(uint8(ima);title(原始圖像);subplot(122);imshow(bw5);title(canny算子銳化);h1=fspecial(gaussian,9 9);%gaussian低通濾波器銳化bw6 = imfilter(ima,h1);figure;subplot(121);imshow(uint8(ima);title(原始圖像);subplot(122);imshow(uint8(bw6);title(gaussian低通濾波器);h2=fspecial(laplacian);%laplacian算子銳化bw7 = imfilter(ima,h1);figure;subplot(121);imshow(uint8(ima);title(原始圖像);subplot(122);imshow(uint8(bw7);title(laplacian算子銳化);。
總結(jié)
以上是生活随笔為你收集整理的图像锐化处理算法matlab,图像锐化matlab算法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS 16 小技巧:在 iPhone
- 下一篇: iPhone 登录别人的 Apple I