1
说明: matlab使用垂直Sobel算子,自动选择阈值
[VSFAT Threshold]=edge(f, sobel , vertical )
边缘探测
figure,imshow(f),title( 原始图像 ),
显示原始图像
figure,imshow(VSFAT),title( 垂直图像边缘检测 )
显示边缘探测图像
使用水平和垂直Sobel算子,自动选择阈值
SFST=edge(f, sobel ,2)
figure,imshow(SFST),title( 水平和垂直图像边缘检测 )
显示边缘探测图像
使用指定45度角
Sobel算子滤波器,指定阈值
s45=[-2 -1 0 -1 0 1 0 1 2]
SFST45=imfilter(f,s45, replicate )
SFST45=SFST45>=2
figure,imshow(SFST45),title( 45度角图像边缘检测 )
显示边缘探测图像
(matlab I=rgb2gray(I0)
J0=double(I) [VSFAT Threshold]=edge(f, sobel , vertical ) figure,imshow(f),title figure,imshow(VSFAT),title)
- 2013-12-18 15:42:14下载
- 积分:1