Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Image.rgb
Stay organized with collections
Save and categorize content based on your preferences.
Create a 3-band image specifically for visualization. This uses the first band in each image.
Returns the combined image.
Usage | Returns | ee.Image.rgb(r, g, b) | Image |
Argument | Type | Details | r | Image | The red image. |
g | Image | The green image. |
b | Image | The blue image. |
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."],[[["\u003cp\u003eCreates a 3-band image for visualization purposes using the first band of each input image.\u003c/p\u003e\n"],["\u003cp\u003eReturns the combined 3-band image, effectively creating a color image from three separate input images.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.Image.rgb(r, g, b)\u003c/code\u003e function where 'r', 'g', and 'b' represent the red, green, and blue bands respectively.\u003c/p\u003e\n"]]],["The core content details how to create a 3-band image for visualization by combining three individual images into red, green, and blue channels. The `ee.Image.rgb(r, g, b)` function takes three Image arguments (`r`, `g`, `b`) representing the red, green, and blue bands, respectively. The function then uses the first band of each of these input images and returns a single, combined 3-band Image object.\n"],null,["# ee.Image.rgb\n\n\u003cbr /\u003e\n\nCreate a 3-band image specifically for visualization. This uses the first band in each image.\n\n\u003cbr /\u003e\n\nReturns the combined image.\n\n| Usage | Returns |\n|-------------------------|---------|\n| `ee.Image.rgb(r, g, b)` | Image |\n\n| Argument | Type | Details |\n|----------|-------|------------------|\n| `r` | Image | The red image. |\n| `g` | Image | The green image. |\n| `b` | Image | The blue image. |"]]