数字图像处理之边缘检测,图像分割

边缘检测算子比较
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似乎更好一些。
posted on 2012-03-25 14:46  _song  阅读(438)  评论(0编辑  收藏  举报