⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 homework3.m

📁 根据输入的参数不同
💻 M
字号:
 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -