إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ui.Chart.image.byClass
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تنشئ هذه الدالة رسمًا بيانيًا من صورة. تعرض هذه السمة قيم النطاقات المشتقة في المناطق المصنّفة في صورة.
- المحور السيني = اسم النطاق (يتم إدراج جميع النطاقات باستثناء نطاق الفئة في الرسم البياني).
- المحور الصادي = قيمة النطاق.
- السلسلة = تصنيف الصف
تعرض هذه الدالة رسمًا بيانيًا.
الاستخدام | المرتجعات |
---|
ui.Chart.image.byClass(image, classBand, region, reducer, scale, classLabels, xLabels) | ui.Chart |
الوسيطة | النوع | التفاصيل |
---|
image | صورة | صورة مصنّفة لاشتقاق قيم النطاقات منها |
classBand | رقم|سلسلة | نطاق تصنيف الصف في هذه الصورة |
region | Feature|FeatureCollection|Geometry، اختياري | المنطقة التي سيتم تقليلها. في حال عدم توفّره، يتم استخدام الصورة بأكملها. |
reducer | مخفض، اختياري | الدالة المخفّضة التي تنشئ قيم المحور y يجب أن تعرض قيمة واحدة لكل نطاق. القيمة التلقائية هي ee.Reducer.mean(). |
scale | رقم، اختياري | المقياس الذي سيتم استخدامه مع أداة تقليل الدقة بالمتر |
classLabels | List.<String>|List<String>|Object, optional | قاموس للتصنيفات المستخدَمة لتحديد الفئات في وسيلة الإيضاح الخاصة بالسلسلة. في حال الحذف، سيتم تصنيف الفئات باستخدام قيمة classBand. |
xLabels | List<Object>, optional | قائمة بالتصنيفات المستخدَمة لتصنيف النطاقات على المحور السيني يجب أن يحتوي على عناصر أقل بواحد من عدد نطاقات الصور. في حال عدم تضمينها، سيتم تصنيف النطاقات بأسمائها. إذا كانت التصنيفات رقمية (مثل الأطوال الموجية)، سيكون المحور السيني متصلاً. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe \u003ccode\u003eui.Chart.image.byClass\u003c/code\u003e function generates a chart that visualizes band values within classified regions of an image, plotting band values on the y-axis and band names on the x-axis, with separate series for each class label.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify the input image, the band containing class labels, an optional region of interest, a reducer for calculating band values (defaulting to the mean), a scale for the reducer, custom labels for classes, and custom labels for bands.\u003c/p\u003e\n"],["\u003cp\u003eThe chart provides insights into how band values vary across different classes within the image, allowing for analysis of spectral characteristics associated with each class.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.image.byClass\n\n\u003cbr /\u003e\n\nGenerates a Chart from an image. Plots derived band values in classified regions in an image.\n\n\u003cbr /\u003e\n\n- X-axis = Band name (all bands except the class band are charted).\n\n- Y-axis = Band value.\n\n- Series = Class label.\n\nReturns a chart.\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------------------------------|----------|\n| `ui.Chart.image.byClass(image, classBand, `*region* `, `*reducer* `, `*scale* `, `*classLabels* `, `*xLabels*`)` | ui.Chart |\n\n| Argument | Type | Details |\n|---------------|---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `image` | Image | Classified image to derive band values from. |\n| `classBand` | Number\\|String | The class label band in this image. |\n| `region` | Feature\\|FeatureCollection\\|Geometry, optional | The region to reduce. If omitted, uses the entire image. |\n| `reducer` | Reducer, optional | Reducer that generates the value(s) for the y-axis. Must return a single value per band. Defaults to ee.Reducer.mean(). |\n| `scale` | Number, optional | Scale to use with the reducer in meters. |\n| `classLabels` | List.\\\u003cString\\\u003e\\|List\\\u003cString\\\u003e\\|Object, optional | A dictionary of labels used to identify classes in the series legend. If omitted, classes will be labeled with the value of classBand. |\n| `xLabels` | List\\\u003cObject\\\u003e, optional | A list of labels used to label bands on the xAxis. Must have one fewer elements than the number of image bands. If omitted, bands will be labeled with their names. If the labels are numeric (e.g. wavelengths), x-axis will be continuous. |"]]