textureFlattening function
Mat
textureFlattening(
- InputArray src,
- InputArray mask, {
- double lowThreshold = 30,
- double highThreshold = 45,
- 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(
() => cffi.TextureFlattening(
src.ref,
mask.ref,
dst.ref,
lowThreshold,
highThreshold,
kernelSize,
),
);
return dst;
}