Earth Engine 即將推出
非商業用途的配額級別,以便保護共用運算資源,並確保所有使用者都能享有穩固效能。所有非商業用途的專案都必須在
2026 年 4 月 27 日前選取配額級別,否則屆時會預設為「社群」級別。在
2026 年 4 月 27 日,所有專案 (無論選取級別的日期為何) 的級別配額都會生效。
瞭解詳情。
ee.Algorithms.HoughTransform
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
對圖片套用 Hough 轉換。針對每個輸入頻帶,輸出一個頻帶,其中會透過以 lineThreshold 值對 Hough 轉換進行閾值處理來偵測線條。
輸出頻帶會命名為 [input]_lines,其中 [input] 是原始頻帶的名稱。參數的預設值是為了搭配 UINT8 圖片使用而提供,可做為起點。
| 用量 | 傳回 |
|---|
ee.Algorithms.HoughTransform(image, gridSize, inputThreshold, lineThreshold, smooth) | 圖片 |
| 引數 | 類型 | 詳細資料 |
|---|
image | 圖片 | 要套用轉換的圖片。 |
gridSize | 整數,預設值為 256 | 要執行計算的格線大小。 |
inputThreshold | 浮點數,預設值為 64 | 輸入圖片的值門檻。等於或大於這個值的像素會視為有效。 |
lineThreshold | 浮點值 (預設值為 72) | 偵測線條的門檻。如果 Hough 轉換的值等於或高於這個門檻,系統就會視為偵測到線條。 |
smooth | 布林值,預設值為 true | 是否要在偵測線條前平滑化 Hough 轉換。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-04-20 (世界標準時間)。
[null,null,["上次更新時間:2026-04-20 (世界標準時間)。"],[],["The Hough transform detects lines in an image. It takes an image as input and outputs a new image with detected lines for each band, named `[input]_lines`. Key actions include thresholding the input image based on `inputThreshold` to identify active pixels and then thresholding the Hough transform output with `lineThreshold` to detect lines. `gridSize` controls the computation grid, and `smooth` enables smoothing before line detection. Defaults are provided for UINT8 images.\n"]]