ee.Algorithms.CannyEdgeDetector
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
החלת האלגוריתם Canny לזיהוי קצוות על תמונה. הפלט הוא תמונה שהרצועות שלה נקראות באותם שמות כמו רצועות הקלט, ובה ערכים שאינם אפס מציינים קצוות, והגודל של הערך הוא גודל הגרדיאנט.
שימוש | החזרות |
---|
ee.Algorithms.CannyEdgeDetector(image, threshold, sigma) | תמונה |
ארגומנט | סוג | פרטים |
---|
image | תמונה | התמונה שבה רוצים להחיל זיהוי קצוות. |
threshold | מספר ממשי (float) | ערך הסף. הפיקסל נלקח בחשבון רק בזיהוי קצוות אם גודל הגרדיאנט גבוה מסף זה. |
sigma | מספר ממשי (float), ברירת מחדל: 1 | ערך סיגמה של מסנן גאוסיאני שהוחל לפני זיהוי קצוות. הערך 0 מציין שלא יופעל סינון. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eIdentifies edges within an image by calculating gradient magnitude and applying a threshold.\u003c/p\u003e\n"],["\u003cp\u003eReturns an image where non-zero values represent edges, and the magnitude of the value corresponds to the gradient magnitude.\u003c/p\u003e\n"],["\u003cp\u003eOffers customization options through a threshold for gradient magnitude and a sigma value for pre-filtering.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.CannyEdgeDetector\n\nApplies the Canny edge detection algorithm to an image. The output is an image whose bands have the same names as the input bands, and in which non-zero values indicate edges, and the magnitude of the value is the gradient magnitude.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------|---------|\n| `ee.Algorithms.CannyEdgeDetector(image, threshold, `*sigma*`)` | Image |\n\n| Argument | Type | Details |\n|-------------|-------------------|---------------------------------------------------------------------------------------------------------------------------|\n| `image` | Image | The image on which to apply edge detection. |\n| `threshold` | Float | Threshold value. The pixel is only considered for edge detection if the gradient magnitude is higher than this threshold. |\n| `sigma` | Float, default: 1 | Sigma value for a gaussian filter applied before edge detection. 0 means apply no filtering. |"]]