Duyuru:
15 Nisan 2025'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin Earth Engine erişimini sürdürmek için
ticari olmayan uygunluğu doğrulaması gerekir.
ui.Chart.image.byClass
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Resimden grafik oluşturur. Türetilmiş bant değerlerini bir resimdeki sınıflandırılmış bölgelerde çizer.
- X ekseni = Grup adı (sınıf grubu hariç tüm gruplar grafikte gösterilir).
- Y ekseni = Bant değeri.
- Seri = Sınıf etiketi.
Grafik döndürür.
Kullanım | İadeler |
---|
ui.Chart.image.byClass(image, classBand, region, reducer, scale, classLabels, xLabels) | ui.Chart |
Bağımsız Değişken | Tür | Ayrıntılar |
---|
image | Resim | Bant değerlerinin türetileceği sınıflandırılmış görüntü. |
classBand | Sayı|Dize | Bu resimdeki sınıf etiketi bandı. |
region | Feature|FeatureCollection|Geometry, isteğe bağlı | İndirgenecek bölge. Boş bırakılırsa resmin tamamı kullanılır. |
reducer | Küçültücü, isteğe bağlı | Y ekseni için değerler oluşturan küçültücü. Her bant için tek bir değer döndürmelidir. Varsayılan olarak ee.Reducer.mean() değerine ayarlanır. |
scale | Numara, isteğe bağlı | Metre cinsinden küçültücüyle kullanılacak ölçek. |
classLabels | List.<String>|List<String>|Object, isteğe bağlı | Seri göstergesindeki sınıfları tanımlamak için kullanılan etiketlerin sözlüğü. Atlanırsa sınıflar classBand değeriyle etiketlenir. |
xLabels | List<Object>, isteğe bağlı | xAxis'teki bantları etiketlemek için kullanılan etiketlerin listesi. Görüntü bantlarının sayısından bir eksik öğe içermelidir. Atlanırsa gruplar adlarıyla etiketlenir. Etiketler sayısal ise (ör. dalga boyları) x ekseni sürekli olur. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\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. |"]]