Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del
15 aprile 2025 devono
verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
ee.Image.register
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Registra un'immagine in un'immagine di riferimento consentendo deformazioni locali del foglio di gomma. Gli spostamenti vengono calcolati nel CRS dell'immagine di riferimento, a una scala dettata dalla risoluzione più bassa delle tre proiezioni seguenti: proiezione dell'immagine di input, proiezione dell'immagine di riferimento e proiezione richiesta. Gli spostamenti vengono quindi applicati all'immagine di input per registrarla con il riferimento.
Utilizzo | Resi |
---|
Image.register(referenceImage, maxOffset, patchWidth, stiffness) | Immagine |
Argomento | Tipo | Dettagli |
---|
questo: image | Immagine | L'immagine da registrare. |
referenceImage | Immagine | L'immagine a cui registrarsi. |
maxOffset | Float | L'offset massimo consentito quando si tenta di allineare le immagini di input, in metri. L'utilizzo di un valore più piccolo può ridurre significativamente il tempo di calcolo, ma deve comunque essere sufficientemente grande da coprire lo spostamento maggiore all'interno dell'intera regione dell'immagine. |
patchWidth | Float, valore predefinito: null | Dimensioni della patch per il rilevamento degli offset delle immagini, in metri. Questo valore deve essere sufficientemente grande da acquisire la trama, ma anche abbastanza piccolo da rendere gli oggetti ignorabili piccoli all'interno della patch. Il valore predefinito è null. Se non viene fornita, la dimensione della patch verrà determinata automaticamente. |
stiffness | Virgola mobile, valore predefinito: 5 | Applica un vincolo di rigidità alla soluzione. I valori validi sono compresi nell'intervallo [0,10]. La rigidità viene utilizzata per il rifiuto degli outlier quando vengono determinati gli spostamenti nei punti della griglia adiacenti. Valori più alti spostano la soluzione verso una trasformazione rigida. Valori più bassi consentono una maggiore distorsione o deformazione dell'immagine durante la registrazione. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]