textureFlattening function

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

TextureFlattening washes out the texture of the selected region, giving its contents a flat aspect. For further details, please see: https://docs.opencv.org/master/df/da0/group__photo__clone.html#gad55df6aa53797365fa7cc23959a54004

Implementation

//
/// For further details, please see:
/// https://docs.opencv.org/master/df/da0/group__photo__clone.html#gad55df6aa53797365fa7cc23959a54004
Mat textureFlattening(
  InputArray src,
  InputArray mask, {
  double lowThreshold = 30,
  double highThreshold = 45,
  int kernelSize = 3,
}) {
  final dst = Mat.empty();
  cvRun(
    () => cphoto.TextureFlattening(
      src.ref,
      mask.ref,
      dst.ref,
      lowThreshold,
      highThreshold,
      kernelSize,
    ),
  );
  return dst;
}