=
edge(I)
采用灰度或壹個二值化圖像I作為它的輸入,並返回壹個與I相同大小的二值化圖像BW,在函數檢測到邊緣的地方為1,其他地方為0。
BW
=
edge(I,'sobel')
自動選擇閾值用Sobel算子進行邊緣檢測。
BW
=
edge(I,'sobel',thresh)
根據所指定的敏感度閾值thresh,用Sobel算子進行邊緣檢測,它忽略了所有小於閾值的邊緣。當thresh為空時,自動選擇閾值。
BW
=
edge(I,'sobel',thresh,direction)
根據所指定的敏感度閾值thresh,在所指定的方向direction上,用Sobel
算子進行邊緣檢測。Direction可取的字符串值為horizontal(水平方向)、vertical(垂直方向)或both(兩個方向)。
[BW,thresh]
=
edge(I,'sobel',...)
返回閾值
BW
=
edge(I,'prewitt')
自動選擇閾值用prewitt算子進行邊緣檢測。
BW
=
edge(I,'prewitt',thresh)
根據所指定的敏感度閾值thresh,用prewitt算子進行邊緣檢測,它忽略了所有小於閾值的邊緣。當thresh為空時,自動選擇閾值。
BW
=
edge(I,'prewitt',thresh,direction)
根據所指定的敏感度閾值thresh,在所指定的方向direction上,用prewitt算子進行邊緣檢測。Direction可取的字符串值為horizontal(水平方向)、vertical(垂直方向)或both(兩個方向)默認方向為both。
[BW,thresh]
=
edge(I,'prewitt',...)
返回閾值
BW
=
edge(I,'roberts')
自動選擇閾值用roberts算子進行邊緣檢測。
BW
=
edge(I,'roberts',thresh)
根據所指定的敏感度閾值thresh,用Roberts算子進行邊緣檢測,它忽略了所有小於閾值的邊緣。當thresh為空時,自動選擇閾值。
Matlab中文論壇
[BW,thresh]
=
edge(I,'roberts',...)
返回閾值
BW
=
edge(I,'log')
自動選擇閾值用LOG算子進行邊緣檢測。
……很多啊,妳還是help
edge壹下,裏面有很多舉例。