图像的边缘检测

来源:互联网 发布:750x254淘宝店招素材 编辑:程序博客网 时间:2024/06/10 21:57

图像的边缘检测


clc;

clear all;
f=imread('building.tif');
[g,t]=edge(f,'sobel');
figure(1);
subplot(3,2,1);
imshow(g);
title('图aSobel边缘检测器使用默认参数的结果');
[g,t]=edge(f,'sobel',0.05,'vertical');
subplot(3,2,2);
imshow(g);
title('图bSobel边缘检测器使用指定参数的结果');
[g,t]=edge(f,'log');
subplot(3,2,3);
imshow(g);
title('图cLog边缘检测器使用默认参数的结果');
[g,t]=edge(f,'log',0.003,2.25);
subplot(3,2,4);
imshow(g);
title('图dLog边缘检测器使用指定参数的结果');
[g,t]=edge(f,'canny');
subplot(3,2,5);
imshow(g);
title('图eCanny边缘检测器使用默认参数的结果');
[g,t]=edge(f,'canny',[0.04,0.10],1.5);
subplot(3,2,6);
imshow(g);

title('图fCanny边缘检测器使用指定参数的结果');


结果图:


原创粉丝点击