ee.Image.randomVisualizer
Creates 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.
Usage | Returns |
---|
Image.randomVisualizer() | Image |
Argument | Type | Details |
---|
this: image | Image | Image with at least one band. |
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."],[[["Generates a visualization by assigning random colors to unique pixel values in the first band of an image."],["The resulting image includes red, green, and blue bands derived from these random colors, followed by all original image bands."],["This visualization tool helps in understanding the distribution and patterns of pixel values within an image."]]],["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"]]