קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
פעולות מורפולוגיות מיושמות ב-Earth Engine כפעולות מוקד, במיוחד שיטות המכונה focalMax(), focalMin(), focalMedian() ו-focalMode() בכיתה Image. (אלה קיצורי דרך ל-reduceNeighborhood() הכללי יותר, שיכול להזין את הפיקסלים בליבה לכל פונקציית צמצום עם פלט מספרי. מידע נוסף על צמצום השכונות זמין בדף הזה. אופרטורים מורפולוגיים שימושיים לביצוע פעולות כמו שחיקה, הרחבה, פתיחה וסגירה. לדוגמה, כדי לבצע פעולת פתיחה, משתמשים ב-focalMin() ואז ב-focalMax():
שימו לב שבדוגמה הקודמת, ניתנת ל-operator מורפולוגי טענת ליבה. הפיקסלים שמכוסים באלמנטים שאינם אפס בליבה משמשים לחישוב. הארגומנט iterations מציין כמה פעמים להחיל את האופרטור.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-02-18 (שעון UTC)."],[[["Earth Engine uses focal operations like `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` to implement morphological operations for image processing."],["Morphological operations, such as erosion, dilation, opening, and closing, can be performed using these focal operations to modify image structures."],["Users can define kernels to specify the shape and size of the neighborhood used in the operations and control the number of times the operation is applied with the iterations argument."],["An opening operation, for example, can be achieved by applying `focalMin()` followed by `focalMax()` with a defined kernel."]]],["Earth Engine's `Image` class provides `focalMax()`, `focalMin()`, `focalMedian()`, and `focalMode()` for morphological operations like erosion, dilation, opening, and closing. These operations use a kernel to define the neighborhood of pixels. For example, the opening operation is achieved by applying `focalMin()` then `focalMax()`. A kernel argument defines the area for computation, and the iterations argument specifies the number of operator applications. The provided code demonstrates the opening operation on a Landsat 8 image using a circular kernel.\n"]]