ee.Image.signum

Computes the signum function (sign) of the input; zero if the input is zero, 1 if the input is greater than zero, -1 if the input is less than zero.

UsageReturns
Image.signum()Image
ArgumentTypeDetails
this: valueImage

The image to which the operation is applied.