ee.Image.toInt16
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Truyền giá trị đầu vào thành số nguyên 16 bit có dấu.
Cách sử dụng | Giá trị trả về |
---|
Image.toInt16() | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
this: value | Hình ảnh | Hình ảnh mà thao tác được áp dụng. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eConverts image pixel values to signed 16-bit integers.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003etoInt16()\u003c/code\u003e is applied to an image and returns a modified image.\u003c/p\u003e\n"],["\u003cp\u003eInput image is provided as the \u003ccode\u003evalue\u003c/code\u003e argument.\u003c/p\u003e\n"]]],["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"],null,["# ee.Image.toInt16\n\nCasts the input value to a signed 16-bit integer.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------|---------|\n| Image.toInt16`()` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|----------------------------------------------|\n| this: `value` | Image | The image to which the operation is applied. |"]]