ee.Image.medialAxis
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחשבת את הציר החציוני הנפרד של הפיקסלים עם הערך אפס ברצועה הראשונה של הקלט. הפלט הוא 4 להקות:
medial – נקודות הציר האמצעי, שמוגדרות לפי המרחק.
כיסוי – מספר הנקודות שתומכות בכל נקודה של ציר האמצע.
xlabel – המרחק האופקי לנקודת ההספק לכל פיקסל.
ylabel – המרחק האנכי לנקודת ההספק לכל פיקסל.
שימוש | החזרות |
---|
Image.medialAxis(neighborhood, units) | תמונה |
ארגומנט | סוג | פרטים |
---|
זה: image | תמונה | תמונת הקלט. |
neighborhood | מספר שלם, ברירת מחדל: 256 | גודל השכונה בפיקסלים. |
units | מחרוזת, ברירת מחדל: 'פיקסלים' | יחידות השכונה, נכון לעכשיו יש תמיכה רק בפיקסלים. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eComputes the discrete medial axis transform of the zero-valued pixels in the first band of an image.\u003c/p\u003e\n"],["\u003cp\u003eOutputs a 4-band image representing medial axis points, their support, and distances to power points.\u003c/p\u003e\n"],["\u003cp\u003eAccepts an input image, neighborhood size, and units as parameters for customization.\u003c/p\u003e\n"]]],["This function calculates the discrete medial axis of an image's zero-valued pixels. It returns an image with four bands: `medial` (medial axis points scaled by distance), `coverage` (number of supporting points), `xlabel` (horizontal distance to the power point), and `ylabel` (vertical distance to the power point). The function accepts an input image, neighborhood size (default: 256 pixels), and units (only 'pixels' supported). It is called using `Image.medialAxis()`.\n"],null,["# ee.Image.medialAxis\n\nComputes the discrete medial axis of the zero valued pixels of the first band of the input. Outputs 4 bands:\n\n\u003cbr /\u003e\n\nmedial - the medial axis points, scaled by the distance.\n\ncoverage - the number of points supporting each medial axis point.\n\nxlabel - the horizontal distance to the power point for each pixel.\n\nylabel - the vertical distance to the power point for each pixel.\n\n| Usage | Returns |\n|--------------------------------------------------|---------|\n| Image.medialAxis`(`*neighborhood* `, `*units*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|---------------------------|-----------------------------------------------------------------------|\n| this: `image` | Image | The input image. |\n| `neighborhood` | Integer, default: 256 | Neighborhood size in pixels. |\n| `units` | String, default: \"pixels\" | The units of the neighborhood, currently only 'pixels' are supported. |"]]