Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.signum
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eComputes the signum function of an image, resulting in a new image with pixel values of 1, 0, or -1.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eIt is applied to an input image and outputs a modified image based on the signum function.\u003c/p\u003e\n"]]],[],null,["# ee.Image.signum\n\nComputes 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.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------|---------|\n| Image.signum`()` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|----------------------------------------------|\n| this: `value` | Image | The image to which the operation is applied. |"]]