homework3.m

来自「根据输入的参数不同」· M 代码 · 共 31 行

M
31
字号
 clear
 I=imread('lenna.bmp');
 image1=myedge(I,'sobel',0.5);
 image2=myedge(I,'prewitt',0.5);
 image3=myedge(I,'roberts',0.4);
 image4=myedge(I,'marr',2);%num is ht sigma
 image5=myedge(I,'canny',0.8);%num is the percent of hth
 
 subplot(3,2,1);
 imshow(I);
 title('original image');
 
 subplot(3,2,2);
 imshow(image1);
 title('sobel');
 
 subplot(3,2,3);
 imshow(image2);
 title('prewitt');
 
 subplot(3,2,4);
 imshow(image3);
 title('roberts');
 
 subplot(3,2,5);
 imshow(image4);
 title('marr');
 
 subplot(3,2,6);
 imshow(image5);
 title('canny');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?