當前位置:編程學習大全網 - 源碼下載 - matlab中edge的用法

matlab中edge的用法

BW

=

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壹下,裏面有很多舉例。

  • 上一篇:二氧化鈦簡介
  • 下一篇:模擬信用卡的信用卡詐騙案例介紹讓人措手不及。
  • copyright 2024編程學習大全網