ee.Algorithms.HoughTransform
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ใช้การแปลงฮัฟฟ์กับรูปภาพ สำหรับทุกแถบอินพุต จะแสดงผลแถบที่ตรวจพบเส้นโดยการกำหนดเกณฑ์การแปลงฮัฟด้วยค่า lineThreshold แถบเอาต์พุตจะชื่อ [input]_lines โดยที่ [input] คือชื่อของแถบต้นฉบับ ค่าเริ่มต้นที่ระบุไว้สำหรับพารามิเตอร์มีไว้เพื่อเป็นจุดเริ่มต้นในการใช้กับรูปภาพ UINT8
การใช้งาน | การคืนสินค้า |
---|
ee.Algorithms.HoughTransform(image, gridSize, inputThreshold, lineThreshold, smooth) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
image | รูปภาพ | รูปภาพที่จะใช้การเปลี่ยนรูปแบบ |
gridSize | จำนวนเต็ม ค่าเริ่มต้น: 256 | ขนาดของตารางกริดที่จะใช้ในการคำนวณ |
inputThreshold | Float, ค่าเริ่มต้น: 64 | เกณฑ์ค่าสำหรับรูปภาพอินพุต พิกเซลที่มีค่าเท่ากับหรือสูงกว่าค่านี้จะถือว่าใช้งานได้ |
lineThreshold | ลอย ค่าเริ่มต้น: 72 | เกณฑ์การตรวจหาเส้น ค่าที่เท่ากับหรือสูงกว่าเกณฑ์นี้ในการแปลงฮัฟฟ์จะถือว่าเป็นเส้นที่ตรวจพบ |
smooth | บูลีน ค่าเริ่มต้น: จริง | ว่าจะปรับการแปลง Hough ให้เรียบก่อนตรวจหาเส้นหรือไม่ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eDetects lines in an image by applying the Hough transform and thresholding the results.\u003c/p\u003e\n"],["\u003cp\u003eOutputs a new band for each input band, highlighting detected lines, named "[input]_lines".\u003c/p\u003e\n"],["\u003cp\u003eCustomizable parameters include grid size, input and line thresholds, and smoothing for the Hough transform.\u003c/p\u003e\n"],["\u003cp\u003eDefault parameter values are optimized for 8-bit unsigned integer images.\u003c/p\u003e\n"],["\u003cp\u003eUsers can adjust these parameters to fine-tune line detection for their specific images and use cases.\u003c/p\u003e\n"]]],["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"],null,["# ee.Algorithms.HoughTransform\n\nApplies the Hough transform to an image. For every input band, outputs a band where lines are detected by thresholding the Hough transform with a value of lineThreshold. The output band is named \\[input\\]_lines, where \\[input\\] is the name of the original band. The defaults provided for the parameters are intended as a starting point for use with UINT8 images.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------------------------|---------|\n| `ee.Algorithms.HoughTransform(image, `*gridSize* `, `*inputThreshold* `, `*lineThreshold* `, `*smooth*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `image` | Image | The image to which to apply the transform. |\n| `gridSize` | Integer, default: 256 | The size of the grid over which to perform the computation. |\n| `inputThreshold` | Float, default: 64 | Value threshold for input image. Pixels equal to or above this value are considered active. |\n| `lineThreshold` | Float, default: 72 | Threshold for line detection. Values equal to or above this threshold on the Hough transform are considered to be detected lines. |\n| `smooth` | Boolean, default: true | Whether to smooth the Hough transform before line detection. |"]]