magickCannyEdgeImage method

Future<bool> magickCannyEdgeImage({
  1. required double radius,
  2. required double sigma,
  3. required double lowerPercent,
  4. required double upperPercent,
})

magickCannyEdgeImage() uses a multi-stage algorithm to detect a wide range of edges in images.

This method runs inside an isolate different from the main isolate.

  • radius : the radius of the gaussian smoothing filter.
  • sigma : the sigma of the gaussian smoothing filter.
  • lowerPercent : percentage of edge pixels in the lower threshold.
  • upperPercent : percentage of edge pixels in the upper threshold.

Implementation

Future<bool> magickCannyEdgeImage({
  required double radius,
  required double sigma,
  required double lowerPercent,
  required double upperPercent,
}) async =>
    await _magickCompute(
      _magickCannyEdgeImage,
      _MagickCannyEdgeImageParams(
        _wandPtr.address,
        radius,
        sigma,
        lowerPercent,
        upperPercent,
      ),
    );