Table of Contents

Method BoxFilter

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

BoxFilter(InputArray, OutputArray, MatType, Size, Point?, bool, BorderTypes)

Smoothes image using box filter

public static void BoxFilter(InputArray src, OutputArray dst, MatType ddepth, Size ksize, Point? anchor = null, bool normalize = true, BorderTypes borderType = BorderTypes.Default)

Parameters

src InputArray

The source image

dst OutputArray

The destination image; will have the same size and the same type as src

ddepth MatType
ksize Size

The smoothing kernel size

anchor Point?

The anchor point. The default value Point(-1,-1) means that the anchor is at the kernel center

normalize bool

Indicates, whether the kernel is normalized by its area or not

borderType BorderTypes

The border mode used to extrapolate pixels outside of the image