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 {
  final dst = Mat.empty();
  return cvRunAsync0(
    (callback) => cphoto.cv_textureFlattening(
      src.ref,
      mask.ref,
      dst.ref,
      lowThreshold,
      highThreshold,
      kernelSize,
      callback,
    ),
    (c) {
      return c.complete(dst);
    },
  );
}