anisotropicDiffusion static method
Mat
anisotropicDiffusion(
- 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 Mat anisotropicDiffusion(
InputArray src,
double alpha,
double K,
int niters, {
OutputArray? dst,
}) {
dst ??= Mat.empty();
cvRun(() => ccontrib.cv_ximgproc_anisotropicDiffusion(src.ref, dst!.ref, alpha, K, niters, ffi.nullptr));
return dst;
}