数字图像处理之边缘检测,图像分割
生活随笔
收集整理的這篇文章主要介紹了
数字图像处理之边缘检测,图像分割
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
邊緣檢測算子比較
I=imread('milkdrop.gif');bw1=edge(I,'sobel'); bw2=edge(I,'prewitt'); bw3=edge(I,'roberts'); bw4=edge(I,'log'); bw5=edge(I,'canny');subplot(3,2,1);imshow(I);title('source'); subplot(3,2,2);imshow(bw1);title('sobel'); subplot(3,2,3);imshow(bw2);title('prewitt'); subplot(3,2,4);imshow(bw3);title('roberts'); subplot(3,2,5);imshow(bw4);title('log'); subplot(3,2,6);imshow(bw5);title('canny');
canny似乎更好一些。
I=imread('milkdrop.gif');bw1=edge(I,'sobel'); bw2=edge(I,'prewitt'); bw3=edge(I,'roberts'); bw4=edge(I,'log'); bw5=edge(I,'canny');subplot(3,2,1);imshow(I);title('source'); subplot(3,2,2);imshow(bw1);title('sobel'); subplot(3,2,3);imshow(bw2);title('prewitt'); subplot(3,2,4);imshow(bw3);title('roberts'); subplot(3,2,5);imshow(bw4);title('log'); subplot(3,2,6);imshow(bw5);title('canny');
canny似乎更好一些。
轉載于:https://www.cnblogs.com/-song/archive/2012/03/25/3331881.html
總結
以上是生活随笔為你收集整理的数字图像处理之边缘检测,图像分割的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 颜色空间,图像格式,彩色转灰度函数
- 下一篇: 面向对象基本原则