textureFlatteningAsync function

Future<Mat> textureFlatteningAsync(
  1. InputArray src,
  2. InputArray mask, {
  3. double lowThreshold = 30,
  4. double highThreshold = 45,
  5. int kernelSize = 3,
})

Implementation

Future<Mat> textureFlatteningAsync(
  InputArray src,
  InputArray mask, {
  double lowThreshold = 30,
  double highThreshold = 45,
  int kernelSize = 3,
}) async {
  return cvRunAsync(
    (callback) => cphoto.TextureFlattening_Async(
      src.ref,
      mask.ref,
      lowThreshold,
      highThreshold,
      kernelSize,
      callback,
    ),
    (c, pdst) => c.complete(Mat.fromPointer(pdst.cast<cphoto.Mat>())),
  );
}