ee.Image.clamp
Clamps the values in all bands of an image to all lie within the specified range.
Usage | Returns |
---|
Image.clamp(low, high) | Image |
Argument | Type | Details |
---|
this: input | Image | The image to clamp. |
low | Float | The minimum allowed value in the range. |
high | Float | The maximum allowed value in the range. |
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."],[[["Clamps pixel values within a specified range, ensuring all bands fall between a minimum and maximum value."],["Takes an input image, a minimum (`low`), and a maximum (`high`) value as arguments."],["Modifies the input image directly, returning a new image with clamped pixel values."],["Useful for adjusting image contrast or ensuring pixel values are within a desired range for further processing."]]],[]]