Canny edge detection

operators.image.canny_edge_detection(client, input_file='in.tif', output_file='out.tif', sigma=1.0, low_threshold=0.1, high_threshold=0.2, values_subset='', instance_type='x2large')
Perform Canny edge detection on a georeferenced image and save the detected edges as a raster.

canny_edge_detection( client,
input_file=’in.tif’,
output_file=’out.tif’,
sigma=1.0,
low_threshold=0.1,
high_threshold=0.2,
values_subset=’’,
instance_type=’x2large’ )
Parameters:
  • input_file – Input image file

  • output_file – Output edge raster file

  • sigma – Standard deviation of the Gaussian filter

  • low_threshold – Low threshold for hysteresis

  • high_threshold – High threshold for hysteresis

  • values_subset – Subset of values to extract contours from, all values by default

  • instance_type – type of cloud instance used for processing