ee.Image.uint8
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 8 bit không dấu.
Cách sử dụng | Giá trị trả về |
---|
Image.uint8() | 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\u003eTransforms image data to an 8-bit unsigned integer format.\u003c/p\u003e\n"],["\u003cp\u003eThis operation modifies the image in-place and returns the updated Image object.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily used for ensuring pixel values fall within the range of 0-255.\u003c/p\u003e\n"]]],["The `uint8()` method converts an image's data type to an unsigned 8-bit integer. The input `value`, representing an image, is cast. The method, when applied, returns a modified image. This method does not take any additional arguments, only the image the operation will be applied to.\n"],null,["# ee.Image.uint8\n\nCasts the input value to an unsigned 8-bit integer.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------|---------|\n| Image.uint8`()` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|----------------------------------------------|\n| this: `value` | Image | The image to which the operation is applied. |"]]