ee.Image.unitScale
Scales 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.
Usage | Returns | Image.unitScale(low, high) | Image |
Argument | Type | Details | this: input | Image | The image to scale. |
low | Float | The value mapped to 0. |
high | Float | The value mapped to 1. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Scales image pixel values to a range of 0 to 1, mapping input value `low` to 0 and `high` to 1."],["Values outside the specified `low` and `high` range are not clamped and will be scaled accordingly."],["The `unitScale` algorithm always outputs an image with floating point pixel values."],["The original image is used as input and a new scaled image is returned."]]],[]]