ee.Algorithms.CannyEdgeDetector
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."],[[["Identifies edges within an image by calculating gradient magnitude and applying a threshold."],["Returns an image where non-zero values represent edges, and the magnitude of the value corresponds to the gradient magnitude."],["Offers customization options through a threshold for gradient magnitude and a sigma value for pre-filtering."]]],[]]