anisotropicDiffusionAsync static method
Future<Mat>
anisotropicDiffusionAsync(
- InputArray src,
- double alpha,
- double K,
- int niters, {
- OutputArray? dst,
Performs anisotropic diffusion on an image.
The function applies Perona-Malik anisotropic diffusion to an image. https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#gaffedd976e0a8efb5938107acab185ec2
Implementation
static Future<Mat> anisotropicDiffusionAsync(
InputArray src,
double alpha,
double K,
int niters, {
OutputArray? dst,
}) async {
dst ??= Mat.empty();
return cvRunAsync0(
(callback) =>
ccontrib.cv_ximgproc_anisotropicDiffusion(src.ref, dst!.ref, alpha, K, niters, callback), (c) {
return c.complete(dst);
});
}