Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ee.Algorithms.CannyEdgeDetector
Stay organized with collections
Save and categorize content based on your preferences.
Applies 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.
| Usage | Returns | ee.Algorithms.CannyEdgeDetector(image, threshold, sigma) | Image |
| Argument | Type | Details | image | Image | The image on which to apply edge detection. |
threshold | Float | Threshold value. The pixel is only considered for edge detection if the gradient magnitude is higher than this threshold. |
sigma | Float, default: 1 | Sigma value for a gaussian filter applied before edge detection. 0 means apply no filtering. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[]]