ee.Image.randomVisualizer
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.
Tạo hình ảnh trực quan bằng cách chỉ định một màu ngẫu nhiên cho mỗi giá trị riêng biệt của các pixel trong dải tần số đầu tiên. Ba dải tần đầu tiên của hình ảnh đầu ra sẽ chứa các giá trị R, G và B 8 bit, tiếp theo là tất cả các dải tần của hình ảnh đầu vào.
Cách sử dụng | Giá trị trả về |
---|
Image.randomVisualizer() | Hình ảnh |
Đối số | Loại | Thông tin chi tiết |
---|
this: image | Hình ảnh | Hình ảnh có ít nhất một dải tần. |
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\u003eGenerates a visualization by assigning random colors to unique pixel values in the first band of an image.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting image includes red, green, and blue bands derived from these random colors, followed by all original image bands.\u003c/p\u003e\n"],["\u003cp\u003eThis visualization tool helps in understanding the distribution and patterns of pixel values within an image.\u003c/p\u003e\n"]]],["The function `randomVisualizer()` generates a visualization image from an input image. It assigns a random color to each unique pixel value in the first band. The output image's first three bands store 8-bit Red, Green, and Blue values representing these colors. Remaining bands in the output mirror the input image's bands. It operates on an `Image` with at least one band and returns a modified `Image`.\n"],null,["# ee.Image.randomVisualizer\n\nCreates a visualization image by assigning a random color to each unique value of the pixels of the first band. The first three bands of the output image will contain 8-bit R, G and B values, followed by all bands of the input image.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------|---------|\n| Image.randomVisualizer`()` | Image |\n\n| Argument | Type | Details |\n|---------------|-------|-------------------------------|\n| this: `image` | Image | Image with at least one band. |"]]