filter2DAsync function

Future<Mat> filter2DAsync(
  1. InputArray src,
  2. int ddepth,
  3. InputArray kernel, {
  4. Point? anchor,
  5. double delta = 0,
  6. int borderType = BORDER_DEFAULT,
})

Filter2D applies an arbitrary linear filter to an image.

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

Implementation

Future<Mat> filter2DAsync(
  InputArray src,
  int ddepth,
  InputArray kernel, {
  Point? anchor,
  double delta = 0,
  int borderType = BORDER_DEFAULT,
}) async =>
    cvRunAsync(
      (callback) => cimgproc.Filter2D_Async(
        src.ref,
        ddepth,
        kernel.ref,
        anchor?.ref ?? Point(-1, -1).ref,
        delta,
        borderType,
        callback,
      ),
      matCompleter,
    );