當前位置:編程學習大全網 - 網站源碼 - 邊緣檢測 I2=edge(I1,'robert',0.09,'both')裏面0.09是什麽 ?

邊緣檢測 I2=edge(I1,'robert',0.09,'both')裏面0.09是什麽 ?

看完下面的都應該明白了

edge函數實現的語法格式如下:

BW=edge(I, 'sobel')

BW=edge(I, 'sobel',thresh)

BW=edge (I, 'sobel', thresh, direction)

[BW, thresh]=edge (I, 'sobel'…)

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'…)返回閾值

  • 上一篇:python2.7.13編寫socket簡單程序的出錯問題,代碼如下 import socket s = socket.socket()
  • 下一篇:Js獲取Iframe頁面高度,並將高度賦值給Iframe
  • copyright 2024編程學習大全網