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.Image.register
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Registra uma imagem em uma imagem de referência, permitindo deformações locais e de borracha. Os deslocamentos são calculados no CRS da imagem de referência, em uma escala determinada pela menor resolução das três projeções a seguir: projeção da imagem de entrada, projeção da imagem de referência e projeção solicitada. Os deslocamentos são aplicados à imagem de entrada para registrar com a referência.
Uso | Retorna |
---|
Image.register(referenceImage, maxOffset, patchWidth, stiffness) | Imagem |
Argumento | Tipo | Detalhes |
---|
isso: image | Imagem | A imagem a ser registrada. |
referenceImage | Imagem | A imagem a ser registrada. |
maxOffset | Ponto flutuante | O deslocamento máximo permitido ao tentar alinhar as imagens de entrada, em metros. Usar um valor menor pode reduzir significativamente o tempo de computação, mas ele ainda precisa ser grande o suficiente para cobrir o maior deslocamento em toda a região da imagem. |
patchWidth | Ponto flutuante, padrão: nulo | Tamanho do patch para detectar deslocamentos de imagem, em metros. Ele precisa ser grande o suficiente para capturar a textura e para que objetos ignoráveis sejam pequenos dentro do patch. O padrão é nulo. O tamanho do patch será determinado automaticamente se não for fornecido. |
stiffness | Ponto flutuante, padrão: 5 | Aplica uma restrição de rigidez à solução. Os valores válidos estão no intervalo [0,10]. A rigidez é usada para rejeição de outliers ao determinar deslocamentos em pontos de grade adjacentes. Valores mais altos movem a solução para uma transformação rígida. Valores mais baixos permitem mais distorção ou deformação da imagem durante o registro. |
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\u003eRegisters an image to a reference image using local, rubber sheet deformations, allowing for flexible alignment.\u003c/p\u003e\n"],["\u003cp\u003eDisplacements are calculated in the reference image's Coordinate Reference System (CRS) and scaled based on the lowest resolution among the input, reference, and requested projections.\u003c/p\u003e\n"],["\u003cp\u003eUsers can control the maximum allowed offset for alignment and optionally specify patch size and stiffness for fine-tuning the registration process.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a registered image aligned with the reference image based on the computed displacements.\u003c/p\u003e\n"]]],["The `register` function aligns an input image to a reference image, accommodating local deformations. It computes displacements in the reference image's coordinate system at the lowest resolution of the input, reference, and requested projections. Key parameters include `maxOffset` (maximum allowed displacement), `patchWidth` (patch size for offset detection), and `stiffness` (controls image warping). The function then applies the computed displacements to the input image, returning the registered image.\n"],null,["# ee.Image.register\n\nRegisters an image to a reference image while allowing local, rubber sheet deformations. Displacements are computed in the CRS of the reference image, at a scale dictated by the lowest resolution of the following three projections: input image projection, reference image projection, and requested projection. The displacements then applied to the input image to register it with the reference.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------|---------|\n| Image.register`(referenceImage, maxOffset, `*patchWidth* `, `*stiffness*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to register. |\n| `referenceImage` | Image | The image to register to. |\n| `maxOffset` | Float | The maximum offset allowed when attempting to align the input images, in meters. Using a smaller value can reduce computation time significantly, but it must still be large enough to cover the greatest displacement within the entire image region. |\n| `patchWidth` | Float, default: null | Patch size for detecting image offsets, in meters. This should be set large enough to capture texture, as well as large enough that ignorable objects are small within the patch. Default is null. Patch size will be determined automatically if notprovided. |\n| `stiffness` | Float, default: 5 | Enforces a stiffness constraint on the solution. Valid values are in the range \\[0,10\\]. The stiffness is used for outlier rejection when determining displacements at adjacent grid points. Higher values move the solution towards a rigid transformation. Lower values allow more distortion or warping of the image during registration. |"]]