ee.Image.toInt16
Casts the input value to a signed 16-bit integer.
Usage | Returns |
---|
Image.toInt16() | 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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Converts image pixel values to signed 16-bit integers."],["The function `toInt16()` is applied to an image and returns a modified image."],["Input image is provided as the `value` argument."]]],["The function converts an image (`value`) to a signed 16-bit integer representation. It operates directly on an image object, casting its data type. The `toInt16()` method is applied to the image itself (`this: value`), and the operation returns a modified image object with the new integer type. No additional arguments are used.\n"]]