数字图像处理之边缘检测,图像分割
边缘检测算子比较
![](http://my.csdn.net/uploads/201204/05/1333611795_3694.jpg)
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');
![](http://my.csdn.net/uploads/201204/05/1333611795_3694.jpg)
canny似乎更好一些。