boxFilter function

VARP boxFilter(
  1. VARP src,
  2. int ddepth,
  3. (int, int) ksize, {
  4. bool normalize = true,
  5. int borderType = BORDER_REFLECT,
})

Implementation

VARP boxFilter(
  VARP src,
  int ddepth,
  (int, int) ksize, {
  bool normalize = true,
  int borderType = BORDER_REFLECT,
}) {
  final cKsize = Size.fromTuple(ksize);
  final pOut = c.mnn_cv_boxFilter(src.ptr, ddepth, cKsize.ref, normalize, borderType);
  final rval = VARP.fromPointer(pOut);
  cKsize.dispose();
  return rval;
}