colorChangeAsync function

Future<Mat> colorChangeAsync(
  1. InputArray src,
  2. InputArray mask, {
  3. double redMul = 1.0,
  4. double greenMul = 1.0,
  5. double blueMul = 1.0,
})

Implementation

Future<Mat> colorChangeAsync(
  InputArray src,
  InputArray mask, {
  double redMul = 1.0,
  double greenMul = 1.0,
  double blueMul = 1.0,
}) async {
  return cvRunAsync(
    (callback) => cphoto.ColorChange_Async(
      src.ref,
      mask.ref,
      redMul,
      greenMul,
      blueMul,
      callback,
    ),
    (c, pdst) => c.complete(Mat.fromPointer(pdst.cast<cphoto.Mat>())),
  );
}