ee.Image.spectralGradient
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, इमेज के सभी बैंड पर स्पेक्ट्रल ग्रेडिएंट का हिसाब लगाता है. अगर इमेज Array टाइप की है, तो यह पहले बैंड पर स्पेक्ट्रल ग्रेडिएंट का हिसाब लगाता है. इसके लिए, यह फ़ंक्शन स्ट्रक्चरिंग कर्नल और दूरी की मेट्रिक का इस्तेमाल करके, स्पेक्ट्रल इरोशन और डाइलेशन के बीच हर पिक्सल के अंतर का हिसाब लगाता है. देखें: प्लाज़ा, एंटोनियो वगैरह. 'स्पैटियल/स्पेक्ट्रल एंडमेंबर एक्सट्रैक्शन बाय मल्टीडाइमेंशनल मॉर्फ़ोलॉजिकल ऑपरेशंस.' IEEE transactions on geoscience and remote sensing 40.9 (2002): 2025-2041.
इस्तेमाल | रिटर्न |
---|
Image.spectralGradient(metric, kernel, useCentroid) | इमेज |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: image | इमेज | इनपुट इमेज. |
metric | स्ट्रिंग, डिफ़ॉल्ट: "sam" | इस्तेमाल की जाने वाली स्पेक्ट्रल डिस्टेंस मेट्रिक. 'sam' (स्पेक्ट्रल ऐंगल मैपर), 'sid' (स्पेक्ट्रल इन्फ़ॉर्मेशन डाइवर्जेंस), 'sed' (स्क्वेयर्ड यूक्लिडियन डिस्टेंस) या 'emd' (अर्थ मूवर्स डिस्टेंस) में से कोई एक. |
kernel | कर्नेल, डिफ़ॉल्ट: null | कनेक्टेडनेस कर्नल. डिफ़ॉल्ट रूप से, यह 1 के रेडियस वाला स्क्वेयर होता है (आठ दिशाओं से जुड़ा हुआ). |
useCentroid | बूलियन, डिफ़ॉल्ट वैल्यू: false | अगर यह विकल्प चुना जाता है, तो दूरी की गणना, कर्नल के सेंटर पिक्सल के बजाय, कर्नल के सभी पिक्सल के औसत से की जाती है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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. |"]]