ee.Image.spectralDilation

Computes the spectral/spatial dilation of an image by computing the spectral distance of each pixel under a structuring kernel from the centroid of all pixels under the kernel and taking the most distant result. ראו 'Spatial/spectral endmember extraction by multidimensional morphological operations'. IEEE transactions on geoscience and remote sensing 40.9 (2002): 2025-2041.

שימושהחזרות
Image.spectralDilation(metric, kernel, useCentroid)תמונה
ארגומנטסוגפרטים
זה: imageתמונהתמונת הקלט.
metricמחרוזת, ברירת מחדל: samמדד המרחק הספקטרלי שבו יש להשתמש. אחת מהאפשרויות הבאות: sam (מיפוי זווית ספקטרלית), sid (שונות במידע ספקטרלי), sed (מרחק אוקלידי בריבוע) או emd (מרחק בין תנועות קרקע).
kernelליבה, ברירת מחדל: nullגרעין הקישוריות. ברירת המחדל היא ריבוע ברדיוס 1 (חיבור ב-8 כיוונים).
useCentroidבוליאני, ברירת מחדל: falseאם הערך הוא True, המרחקים מחושבים מהממוצע של כל הפיקסלים שמתחת לגרעין במקום מהפיקסל המרכזי של הגרעין.