ee.Image.focalMedian
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک فیلتر کاهش دهنده مورفولوژیکی () برای هر باند تصویر با استفاده از یک هسته نامگذاری شده یا سفارشی اعمال می کند.
استفاده | برمی گرداند | Image. focalMedian ( radius , kernelType , units , iterations , kernel ) | تصویر |
استدلال | تایپ کنید | جزئیات | این: image | تصویر | تصویری که عملیات روی آن اعمال شود. |
radius | شناور، پیش فرض: 1.5 | شعاع هسته برای استفاده. |
kernelType | رشته، پیش فرض: "دایره" | نوع هسته مورد استفاده گزینهها عبارتند از: «دایره»، «مربع»، «صلیب»، «به علاوه»، «هشت ضلعی» و «الماس». |
units | رشته، پیش فرض: "pixels" | اگر یک هسته مشخص نشده باشد، تعیین می کند که هسته بر حسب متر باشد یا پیکسل. |
iterations | عدد صحیح، پیش فرض: 1 | تعداد دفعات اعمال کرنل داده شده. |
kernel | هسته، پیش فرض: null | یک هسته سفارشی در صورت استفاده، kernelType و radius نادیده گرفته می شوند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eApplies a morphological reducer filter to each band of an image using a kernel.\u003c/p\u003e\n"],["\u003cp\u003eOffers options for kernel type including circle, square, cross, plus, octagon, and diamond, or allows for a custom kernel.\u003c/p\u003e\n"],["\u003cp\u003eThe radius of the kernel, units (pixels or meters), and number of iterations can be specified.\u003c/p\u003e\n"],["\u003cp\u003eThe filter is applied using the \u003ccode\u003efocalMedian()\u003c/code\u003e function, accepting arguments for radius, kernel type, units, iterations, and a custom kernel if desired.\u003c/p\u003e\n"]]],[],null,["# ee.Image.focalMedian\n\nApplies a morphological reducer() filter to each band of an image using a named or custom kernel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------|---------|\n| Image.focalMedian`(`*radius* `, `*kernelType* `, `*units* `, `*iterations* `, `*kernel*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|---------------------------|------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to which to apply the operations. |\n| `radius` | Float, default: 1.5 | The radius of the kernel to use. |\n| `kernelType` | String, default: \"circle\" | The type of kernel to use. Options include: 'circle', 'square', 'cross', 'plus', 'octagon', and 'diamond'. |\n| `units` | String, default: \"pixels\" | If a kernel is not specified, this determines whether the kernel is in meters or pixels. |\n| `iterations` | Integer, default: 1 | The number of times to apply the given kernel. |\n| `kernel` | Kernel, default: null | A custom kernel. If used, kernelType and radius are ignored. |"]]