ee.Image.signum
Computes the signum function (sign) of the input; 0 if the input is 0, 1 if the input is greater than 0, -1 if the input is less than 0.
Usage | Returns |
---|
Image.signum() | Image |
Argument | Type | Details |
---|
this: value | Image | The image to which the operation is applied. |
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 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Computes the signum function of an image, resulting in a new image with pixel values of 1, 0, or -1."],["The function returns an image where each pixel value represents the sign of the corresponding pixel in the input image: 1 for positive values, 0 for zero, and -1 for negative values."],["It is applied to an input image and outputs a modified image based on the signum function."]]],[]]