erodeAsync function

Future<Mat> erodeAsync(
  1. Mat src,
  2. Mat kernel, {
  3. Mat? dst,
  4. Point? anchor,
  5. int iterations = 1,
  6. int borderType = BORDER_CONSTANT,
  7. Scalar? borderValue,
})

Erode erodes an image by using a specific structuring element.

For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#gaeb1e0c1033e3f6b891a25d0511362aeb

Implementation

Future<Mat> erodeAsync(
  Mat src,
  Mat kernel, {
  Mat? dst,
  Point? anchor,
  int iterations = 1,
  int borderType = BORDER_CONSTANT,
  Scalar? borderValue,
}) async =>
    cvRunAsync(
      (callback) => cimgproc.ErodeWithParams_Async(
        src.ref,
        kernel.ref,
        anchor?.ref ?? Point(-1, -1).ref,
        iterations,
        borderType,
        borderValue?.ref ?? Scalar().ref,
        callback,
      ),
      matCompleter,
    );