inpaintAsync function

Future<Mat> inpaintAsync(
  1. InputArray src,
  2. InputArray inpaintMask,
  3. double inpaintRadius,
  4. int flags,
)

Implementation

Future<Mat> inpaintAsync(
  InputArray src,
  InputArray inpaintMask,
  double inpaintRadius,
  int flags,
) async {
  return cvRunAsync(
    (callback) => cphoto.PhotoInpaint_Async(
      src.ref,
      inpaintMask.ref,
      inpaintRadius,
      flags,
      callback,
    ),
    (c, pdst) => c.complete(Mat.fromPointer(pdst.cast<cphoto.Mat>())),
  );
}