boxFilter function

Mat boxFilter(
  1. Mat src,
  2. int depth,
  3. (int, int) ksize, {
  4. Point? anchor,
  5. bool normalize = true,
  6. int borderType = BORDER_DEFAULT,
  7. Mat? dst,
})

BoxFilter blurs an image using the box filter.

For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#gad533230ebf2d42509547d514f7d3fbc3

Implementation

Mat boxFilter(
  Mat src,
  int depth,
  (int, int) ksize, {
  Point? anchor,
  bool normalize = true,
  int borderType = BORDER_DEFAULT,
  Mat? dst,
}) {
  dst ??= Mat.empty();
  anchor ??= Point(-1, -1);
  cvRun(
    () => cimgproc.cv_boxFilter(
      src.ref,
      dst!.ref,
      depth,
      ksize.cvd.ref,
      anchor!.ref,
      normalize,
      borderType,
      ffi.nullptr,
    ),
  );
  return dst;
}