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.

UsageReturns
Image.signum()Image
ArgumentTypeDetails
this: valueImageThe image to which the operation is applied.