ee.Algorithms.HoughTransform
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wendet die Hough-Transformation auf ein Bild an. Für jedes Eingabeband wird ein Band ausgegeben, in dem Linien durch Schwellenwertbildung der Hough-Transformation mit dem Wert „lineThreshold“ erkannt werden. Das Ausgabeband hat den Namen [input]_lines, wobei [input] der Name des ursprünglichen Bands ist. Die Standardwerte für die Parameter sind als Ausgangspunkt für die Verwendung mit UINT8-Bildern gedacht.
Nutzung | Ausgabe |
---|
ee.Algorithms.HoughTransform(image, gridSize, inputThreshold, lineThreshold, smooth) | Bild |
Argument | Typ | Details |
---|
image | Bild | Das Bild, auf das die Transformation angewendet werden soll. |
gridSize | Ganzzahl, Standard: 256 | Die Größe des Rasters, für das die Berechnung durchgeführt werden soll. |
inputThreshold | Gleitkommazahl, Standardwert: 64 | Wertschwellenwert für das Eingabebild. Pixel, die diesem Wert entsprechen oder darüber liegen, gelten als aktiv. |
lineThreshold | Gleitkommazahl, Standard: 72 | Grenzwert für die Linienerkennung. Werte, die gleich oder größer als dieser Schwellenwert sind, werden in der Hough-Transformation als erkannte Linien betrachtet. |
smooth | Boolescher Wert, Standard: „true“ | Gibt an, ob die Hough-Transformation vor der Linienerkennung geglättet werden soll. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]