Anúncio: todos os projetos não comerciais registrados para usar o Earth Engine antes de
15 de abril de 2025 precisam
verificar a qualificação não comercial para manter o acesso ao Earth Engine.
ee.Algorithms.HoughTransform
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Aplica a transformação de Hough a uma imagem. Para cada banda de entrada, gera uma banda em que as linhas são detectadas ao definir um limite para a transformação de Hough com um valor de "lineThreshold". A banda de saída é chamada [input]_lines, em que [input] é o nome da banda original. Os valores padrão fornecidos para os parâmetros são destinados a ser um ponto de partida para uso com imagens UINT8.
Uso | Retorna |
---|
ee.Algorithms.HoughTransform(image, gridSize, inputThreshold, lineThreshold, smooth) | Imagem |
Argumento | Tipo | Detalhes |
---|
image | Imagem | A imagem a que a transformação será aplicada. |
gridSize | Número inteiro, padrão: 256 | O tamanho da grade em que a computação será realizada. |
inputThreshold | Ponto flutuante, padrão: 64 | Valor limite para a imagem de entrada. Pixels iguais ou acima desse valor são considerados ativos. |
lineThreshold | Ponto flutuante, padrão: 72 | Limite para detecção de linhas. Valores iguais ou acima desse limite na transformação de Hough são considerados linhas detectadas. |
smooth | Booleano, padrão: verdadeiro | Se é necessário suavizar a transformação de Hough antes da detecção de linhas. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 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. |"]]