Table of Contents

Method SqrBoxFilter

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

SqrBoxFilter(InputArray, OutputArray, int, Size, Point?, bool, BorderTypes)

Calculates the normalized sum of squares of the pixel values overlapping the filter.

For every pixel f(x, y) in the source image, the function calculates the sum of squares of those neighboring pixel values which overlap the filter placed over the pixel f(x, y).

The unnormalized square box filter can be useful in computing local image statistics such as the the local variance and standard deviation around the neighborhood of a pixel.

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

Parameters

src InputArray
dst OutputArray
ddepth int
ksize Size
anchor Point?
normalize bool
borderType BorderTypes