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.unitScale
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Scala l'input in modo che l'intervallo di valori di input [low, high] diventi [0, 1]. I valori al di fuori dell'intervallo NON vengono bloccati. Questo algoritmo produce sempre pixel in virgola mobile.
Utilizzo | Resi |
---|
Image.unitScale(low, high) | Immagine |
Argomento | Tipo | Dettagli |
---|
questo: input | Immagine | L'immagine da scalare. |
low | Float | Il valore mappato su 0. |
high | Float | Il valore mappato su 1. |
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\u003eScales image pixel values to a range of 0 to 1, mapping input value \u003ccode\u003elow\u003c/code\u003e to 0 and \u003ccode\u003ehigh\u003c/code\u003e to 1.\u003c/p\u003e\n"],["\u003cp\u003eValues outside the specified \u003ccode\u003elow\u003c/code\u003e and \u003ccode\u003ehigh\u003c/code\u003e range are not clamped and will be scaled accordingly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eunitScale\u003c/code\u003e algorithm always outputs an image with floating point pixel values.\u003c/p\u003e\n"],["\u003cp\u003eThe original image is used as input and a new scaled image is returned.\u003c/p\u003e\n"]]],["The `unitScale` method scales an image's pixel values. It maps the input range between `low` and `high` to the output range of 0 to 1. The method takes the input image, `low` (the value that becomes 0), and `high` (the value that becomes 1) as arguments. Values outside the specified range are not restricted. The result of the process is a floating-point image.\n"],null,["# ee.Image.unitScale\n\nScales the input so that the range of input values \\[low, high\\] becomes \\[0, 1\\]. Values outside the range are NOT clamped. This algorithm always produces floating point pixels.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|---------|\n| Image.unitScale`(low, high)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|------------------------|\n| this: `input` | Image | The image to scale. |\n| `low` | Float | The value mapped to 0. |\n| `high` | Float | The value mapped to 1. |"]]