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.
ee.Image.spectralGradient
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirli bir yapılandırma çekirdeği ve mesafe metriği ile spektral erozyon ve genişleme arasındaki piksel başına farkı hesaplayarak bir görüntünün tüm bantları (veya görüntü dizi türündeyse ilk bant) üzerinde spektral gradyanı hesaplar. Bkz.: Plaza, Antonio, et al. "Spatial/spectral endmember extraction by multidimensional morphological operations." IEEE transactions on geoscience and remote sensing 40.9 (2002): 2025-2041.
Kullanım | İadeler |
---|
Image.spectralGradient(metric, kernel, useCentroid) | Resim |
Bağımsız Değişken | Tür | Ayrıntılar |
---|
bu: image | Resim | Giriş resmi. |
metric | Dize, varsayılan: "sam" | Kullanılacak spektral uzaklık metriği. "sam" (spectral angle mapper), "sid" (spectral information divergence), "sed" (squared Euclidean distance) veya "emd" (earth movers distance) öğelerinden biri. |
kernel | Kernel, varsayılan: null | Bağlılık çekirdeği. Varsayılan olarak yarıçapı 1 olan bir kare (8 yönlü bağlı) kullanılır. |
useCentroid | Boole değeri, varsayılan: false | Bu değer doğruysa mesafeler, çekirdeğin merkez pikseli yerine çekirdeğin altındaki tüm piksellerin ortalamasından hesaplanır. |
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-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eComputes the spectral gradient of an image by calculating the difference between spectral erosion and dilation using a specified kernel and distance metric.\u003c/p\u003e\n"],["\u003cp\u003eOffers a choice of four spectral distance metrics: SAM, SID, SED, and EMD.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of the connectedness kernel and the method of distance calculation (from the kernel's center or centroid).\u003c/p\u003e\n"],["\u003cp\u003ePrimarily used for spatial/spectral endmember extraction in hyperspectral images, as described in the cited research by Plaza et al.\u003c/p\u003e\n"],["\u003cp\u003eOperates on all bands of multi-band images or the first band of Array-typed images.\u003c/p\u003e\n"]]],[],null,["# ee.Image.spectralGradient\n\nComputes the spectral gradient over all bands of an image (or the first band if the image is Array typed) by computing the per-pixel difference between the spectral erosion and dilation with a given structuring kernel and distance metric. See: Plaza, Antonio, et al. 'Spatial/spectral endmember extraction by multidimensional morphological operations.' IEEE transactions on geoscience and remote sensing 40.9 (2002): 2025-2041.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------|---------|\n| Image.spectralGradient`(`*metric* `, `*kernel* `, `*useCentroid*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The input image. |\n| `metric` | String, default: \"sam\" | The spectral distance metric to use. One of 'sam' (spectral angle mapper), 'sid' (spectral information divergence), 'sed' (squared Euclidean distance), or 'emd' (earth movers distance). |\n| `kernel` | Kernel, default: null | Connectedness kernel. Defaults to a square of radius 1 (8-way connected). |\n| `useCentroid` | Boolean, default: false | If true, distances are computed from the mean of all pixels under the kernel instead of the kernel's center pixel. |"]]