fastNlMeansDenoising function

Mat fastNlMeansDenoising(
  1. InputArray src, {
  2. double h = 3,
  3. int templateWindowSize = 7,
  4. int searchWindowSize = 21,
})

FastNlMeansDenoising performs image denoising using Non-local Means Denoising algorithm http://www.ipol.im/pub/algo/bcm_non_local_means_denoising/ For further details, please see: https://docs.opencv.org/4.x/d1/d79/group__photo__denoise.html#ga4c6b0031f56ea3f98f768881279ffe93

Implementation

//
/// For further details, please see:
/// https://docs.opencv.org/4.x/d1/d79/group__photo__denoise.html#ga4c6b0031f56ea3f98f768881279ffe93
Mat fastNlMeansDenoising(
  InputArray src, {
  double h = 3,
  int templateWindowSize = 7,
  int searchWindowSize = 21,
}) {
  final dst = Mat.empty();
  cvRun(
    () => cffi.FastNlMeansDenoisingWithParams(
      src.ref,
      dst.ref,
      h,
      templateWindowSize,
      searchWindowSize,
    ),
  );
  return dst;
}