ee.Image.focalMedian
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מחילה מסנן לצמצום מורפולוגי()reducer על כל פס של תמונה באמצעות ליבה בעלת שם או ליבה בהתאמה אישית.
שימוש | החזרות |
---|
Image.focalMedian(radius, kernelType, units, iterations, kernel) | תמונה |
ארגומנט | סוג | פרטים |
---|
זה: image | תמונה | התמונה שעליה יחולו הפעולות. |
radius | מספר ממשי (float), ברירת מחדל: 1.5 | הרדיוס של ליבת המסנן שבה רוצים להשתמש. |
kernelType | מחרוזת, ברירת מחדל: circle | סוג הליבה שבה רוצים להשתמש. האפשרויות כוללות: circle, square, cross, plus, octagon ו-diamond. |
units | מחרוזת, ברירת מחדל: 'פיקסלים' | אם לא מציינים גרעין, הפרמטר הזה קובע אם הגרעין הוא במטרים או בפיקסלים. |
iterations | מספר שלם, ברירת מחדל: 1 | מספר הפעמים להחלת הגרעין הנתון. |
kernel | ליבה, ברירת מחדל: null | ליבת מערכת הפעלה בהתאמה אישית. אם משתמשים בפרמטר הזה, המערכת מתעלמת מהפרמטרים kernelType ו-radius. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\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. |"]]