赞
踩
- I=imread('2.jpg');
- I=rgb2gray(I);
- BW1=edge(I,'roberts',0.01);
- BW2=edge(I,'roberts',0.03);
- BW3=edge(I,'roberts',0.05);
- BW4=edge(I,'roberts',0.07);
- BW5=edge(I,'roberts',0.1);%求罗伯茨梯度
- subplot(321)
- imshow(I)
- subplot(322)
- imshow(BW1)
- subplot(323)
- imshow(BW2)
- subplot(324)
- imshow(BW3)
- subplot(325)
- imshow(BW4)
- subplot(326)
- imshow(BW5)
输出结果
第五张
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。