Advertisement

Matlab图像处理:图像边缘检测方法(算子)

阅读量:

1.edge函数语法

复制代码
 BW = edge(I)

    
 BW = edge(I,method)
    
 BW = edge(I,method,threshold)
    
 BW = edge(I,method,threshold,direction)
    
 BW = edge(___,"nothinning")
    
 BW = edge(I,method,threshold,sigma)
    
 BW = edge(I,method,threshold,h)
    
    
    
    

BW = edge(I) 用于生成二值图像 BW,其中数值为 1 的区域对应于图像 I 中被检测出的边缘位置,而数值为 0 的区域则表示非边缘位置。在默认设置下,该函数采用 Sobel 算法进行边缘提取。

BW = edge(I,method) 允许用户通过 method 参数选择特定的边缘检测方法,以对图像 I 进行处理。

BW = edge(I,method,threshold) 可返回所有强度值超过设定阈值 threshold 的边缘信息。

BW = edge(I,method,threshold,direction) 用于指定需要识别的边缘方向。对于 Sobel 和 Prewitt 方法,可以分别检测水平或垂直

全部评论 (0)

还没有任何评论哟~