ee.Image.visualize
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک تصویر RGB یا مقیاس خاکستری از یک تصویر تولید می کند. هر یک از آرگومان های بهره، بایاس، min، max و گاما می تواند یک مقدار واحد داشته باشد، که برای همه باندها اعمال می شود، یا فهرستی از مقادیر به طول باندها.
استفاده | برمی گرداند | Image. visualize ( bands , gain , bias , min , max , gamma , opacity , palette , forceRgbOutput ) | تصویر |
استدلال | تایپ کنید | جزئیات | این: image | تصویر | تصویر برای تجسم |
bands | Object، پیش فرض: null | فهرستی از گروههایی که باید تجسم کنید. اگر خالی باشد، 3 مورد اول استفاده می شود. |
gain | Object، پیش فرض: null | سود (های) تجسم برای استفاده. |
bias | Object، پیش فرض: null | سوگیری (های) تجسم برای استفاده. |
min | Object، پیش فرض: null | مقدار(های) برای نگاشت به مقدار RGB8 0. |
max | Object، پیش فرض: null | مقدار(های) برای نگاشت به مقدار RGB8 255. |
gamma | Object، پیش فرض: null | فاکتور(های) تصحیح گاما برای استفاده. |
opacity | شماره، پیش فرض: null | فاکتور مقیاس بندی کدورت برای استفاده. |
palette | Object، پیش فرض: null | پالت رنگ برای استفاده فهرست شناسههای رنگ CSS یا رشتههای رنگی هگزا دسیمال (به عنوان مثال، ['قرمز'، '00FF00'، 'بنفش آبی']). |
forceRgbOutput | بولی، پیش فرض: نادرست | اینکه آیا خروجی RGB حتی برای ورودی های تک باند تولید شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eVisualizes an image in RGB or grayscale by adjusting gain, bias, min/max values, and gamma correction for specified or default bands.\u003c/p\u003e\n"],["\u003cp\u003eAccepts single values or lists for gain, bias, min, max, and gamma to apply to all or individual bands, respectively.\u003c/p\u003e\n"],["\u003cp\u003eOffers customization options including opacity, a color palette for multi-band visualization, and forced RGB output.\u003c/p\u003e\n"],["\u003cp\u003eUses a list of CSS color identifiers or hexadecimal color strings for the palette parameter when visualizing multi-band images.\u003c/p\u003e\n"],["\u003cp\u003eOperates on an input image and returns a modified image with the specified visualization parameters applied.\u003c/p\u003e\n"]]],["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"],null,["# ee.Image.visualize\n\nProduces 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.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------------------------------------------------------------------------------|---------|\n| Image.visualize`(`*bands* `, `*gain* `, `*bias* `, `*min* `, `*max* `, `*gamma* `, `*opacity* `, `*palette* `, `*forceRgbOutput*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|-------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to visualize. |\n| `bands` | Object, default: null | A list of the bands to visualize. If empty, the first 3 are used. |\n| `gain` | Object, default: null | The visualization gain(s) to use. |\n| `bias` | Object, default: null | The visualization bias(es) to use. |\n| `min` | Object, default: null | The value(s) to map to RGB8 value 0. |\n| `max` | Object, default: null | The value(s) to map to RGB8 value 255. |\n| `gamma` | Object, default: null | The gamma correction factor(s) to use. |\n| `opacity` | Number, default: null | The opacity scaling factor to use. |\n| `palette` | Object, default: null | The color palette to use. List of CSS color identifiers or hexadecimal color strings (e.g., \\['red', '00FF00', 'blueviolet'\\]). |\n| `forceRgbOutput` | Boolean, default: false | Whether to produce RGB output even for single-band inputs. |"]]