ee.Image.spectralDilation
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
اتساع طیفی/فضایی یک تصویر را با محاسبه فاصله طیفی هر پیکسل در زیر هسته ساختاری از مرکز همه پیکسلهای زیر هسته و گرفتن دورترین نتیجه محاسبه میکند. به "استخراج اعضای انتهایی فضایی/طیفی توسط عملیات مورفولوژیکی چند بعدی" مراجعه کنید. معاملات IEEE در زمینه علوم زمین و سنجش از دور 40.9 (2002): 2025-2041.
استفاده | برمی گرداند | Image. spectralDilation ( metric , kernel , useCentroid ) | تصویر |
استدلال | تایپ کنید | جزئیات | این: image | تصویر | تصویر ورودی |
metric | رشته، پیش فرض: "sam" | متریک فاصله طیفی برای استفاده یکی از "sam" (نقشه نگار زاویه طیفی)، "sid" (واگرایی اطلاعات طیفی)، "sed" (مربع فاصله اقلیدسی)، یا "emd" (فاصله جابجایی زمین). |
kernel | هسته، پیش فرض: null | هسته اتصال. بهطور پیشفرض مربع به شعاع 1 (اتصال 8 طرفه) تنظیم میشود. |
useCentroid | بولی، پیش فرض: نادرست | اگر درست باشد، فاصله ها از میانگین تمام پیکسل های زیر هسته به جای پیکسل مرکزی هسته محاسبه می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eComputes the spectral/spatial dilation of an image based on the spectral distance of pixels within a kernel.\u003c/p\u003e\n"],["\u003cp\u003eUses a specified spectral distance metric (SAM, SID, SED, or EMD) to calculate distances.\u003c/p\u003e\n"],["\u003cp\u003eOffers options to define the kernel shape and whether to use the centroid or center pixel for distance calculations.\u003c/p\u003e\n"],["\u003cp\u003eOutputs an image representing the spectral dilation result.\u003c/p\u003e\n"]]],[],null,["# ee.Image.spectralDilation\n\nComputes 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. See '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.spectralDilation`(`*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. |"]]