ee.Image.visualize
Produces an RGB or grayscale visualization of an image. Each of the gain, bias, min, max and gamma arguments can take either a single value, which will be applied to all bands, or a list of values the same length as bands.
Usage | Returns |
---|
Image.visualize(bands, gain, bias, min, max, gamma, opacity, palette, forceRgbOutput) | Image |
Argument | Type | Details |
---|
this: image | Image | The image to visualize. |
bands | Object, default: null | A list of the bands to visualize. If empty, the first 3 are used. |
gain | Object, default: null | The visualization gain(s) to use. |
bias | Object, default: null | The visualization bias(es) to use. |
min | Object, default: null | The value(s) to map to RGB8 value 0. |
max | Object, default: null | The value(s) to map to RGB8 value 255. |
gamma | Object, default: null | The gamma correction factor(s) to use. |
opacity | Number, default: null | The opacity scaling factor to use. |
palette | Object, default: null | The color palette to use. List of CSS color identifiers or hexadecimal color strings (e.g., ['red', '00FF00', 'blueviolet']). |
forceRgbOutput | Boolean, default: false | Whether to produce RGB output even for single-band inputs. |
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 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Visualizes an image in RGB or grayscale by adjusting gain, bias, min/max values, and gamma correction for specified or default bands."],["Accepts single values or lists for gain, bias, min, max, and gamma to apply to all or individual bands, respectively."],["Offers customization options including opacity, a color palette for multi-band visualization, and forced RGB output."],["Uses a list of CSS color identifiers or hexadecimal color strings for the palette parameter when visualizing multi-band images."],["Operates on an input image and returns a modified image with the specified visualization parameters applied."]]],["The `Image.visualize` function generates an RGB or grayscale image visualization. It accepts arguments like `gain`, `bias`, `min`, `max`, and `gamma`, which can be applied to all bands or to individual bands specified in a list. Users can select specific `bands` to visualize or use the first three by default. The `opacity` controls scaling, and a `palette` allows for color customization. `forceRgbOutput` enables RGB output for single-band images.\n"]]