ui.Chart.image.regions
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک نمودار از یک تصویر ایجاد می کند. مقدار هر باند را در یک یا چند ناحیه استخراج و ترسیم می کند.
- محور X = باند برچسب گذاری شده توسط xProperty (پیش فرض: نام باند).
- محور Y = خروجی کاهنده.
- Series = منطقه برچسبگذاری شده توسط seriesProperty (پیشفرض: 'system:index').
نموداری را برمیگرداند.
استفاده | برمی گرداند | ui.Chart.image.regions(image, regions , reducer , scale , seriesProperty , xLabels ) | ui.Chart |
استدلال | تایپ کنید | جزئیات | image | تصویر | تصویر برای استخراج مقادیر باند از. |
regions | ویژگی|FeatureCollection|هندسه|فهرست<ویژگی>|فهرست<هندسه>، اختیاری | مناطق برای کاهش پیشفرض ردپای تصویر. |
reducer | کاهنده، اختیاری | کاهنده ای که مقدار(های) محور y را تولید می کند. باید یک مقدار واحد در هر باند برگرداند. |
scale | شماره، اختیاری | مقیاس پیکسل بر حسب متر |
seriesProperty | رشته، اختیاری | دارایی که باید به عنوان برچسب برای هر منطقه در افسانه استفاده شود. پیشفرض «system:index» است. |
xLabels | List<Object>، اختیاری است | لیستی از برچسب های مورد استفاده برای باندهای روی محور x. باید همان تعداد عناصر باندهای تصویر را داشته باشد. در صورت حذف، گروه ها با نام خود برچسب گذاری می شوند. اگر برچسب ها عددی باشند (مثلاً طول موج)، محور x پیوسته خواهد بود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eGenerates a chart visualizing the values of image bands within specified regions, plotted against band labels or custom x-axis labels.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define regions for analysis, the reducer for calculating band values, pixel scale, legend labels, and custom x-axis labels for the chart.\u003c/p\u003e\n"],["\u003cp\u003eThe chart's y-axis represents the reducer output, while the x-axis represents either band names or user-defined labels, and separate series are plotted for each region.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts an image, regions, a reducer, scale, series property for legend labels, and custom x-axis labels as input parameters.\u003c/p\u003e\n"],["\u003cp\u003eIt outputs a chart object displaying the extracted and plotted band values.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.image.regions\n\n\u003cbr /\u003e\n\nGenerates a Chart from an image. Extracts and plots the value of each band in one or more regions.\n\n\u003cbr /\u003e\n\n- X-axis = Band labeled by xProperty (default: band name).\n\n- Y-axis = Reducer output.\n\n- Series = Region labeled by seriesProperty (default: 'system:index').\n\nReturns a chart.\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------------------------|----------|\n| `ui.Chart.image.regions(image, `*regions* `, `*reducer* `, `*scale* `, `*seriesProperty* `, `*xLabels*`)` | ui.Chart |\n\n| Argument | Type | Details |\n|------------------|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `image` | Image | Image to extract band values from. |\n| `regions` | Feature\\|FeatureCollection\\|Geometry\\|List\\\u003cFeature\\\u003e\\|List\\\u003cGeometry\\\u003e, optional | Regions to reduce. Defaults to the image's footprint. |\n| `reducer` | Reducer, optional | Reducer that generates the value(s) for the y-axis. Must return a single value per band. |\n| `scale` | Number, optional | The pixel scale in meters. |\n| `seriesProperty` | String, optional | Property to be used as the label for each region in the legend. Defaults to 'system:index'. |\n| `xLabels` | List\\\u003cObject\\\u003e, optional | A list of labels used for bands on the x-axis. Must have the same number of elements as the image bands. If omitted, bands will be labeled with their names. If the labels are numeric (e.g. wavelengths), x-axis will be continuous. |"]]