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.

UsageReturns
ee.Algorithms.CannyEdgeDetector(image, threshold, sigma)Image
ArgumentTypeDetails
imageImageThe image on which to apply edge detection.
thresholdFloatThreshold value. The pixel is only considered for edge detection if the gradient magnitude is higher than this threshold.
sigmaFloat, default: 1Sigma value for a gaussian filter applied before edge detection. 0 means apply no filtering.