dilateAsync function

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

Dilate dilates an image by using a specific structuring element.

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

Implementation

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