Click or drag to resize

Cv2SqrBoxFilter Method

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.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void SqrBoxFilter(
	InputArray src,
	OutputArray dst,
	int ddepth,
	Size ksize,
	Nullable<Point> anchor = null,
	bool normalize = true,
	BorderTypes borderType = BorderTypes.Reflect101
)

Parameters

src
Type: OpenCvSharpInputArray

[Missing <param name="src"/> documentation for "M:OpenCvSharp.Cv2.SqrBoxFilter(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32,OpenCvSharp.Size,System.Nullable{OpenCvSharp.Point},System.Boolean,OpenCvSharp.BorderTypes)"]

dst
Type: OpenCvSharpOutputArray

[Missing <param name="dst"/> documentation for "M:OpenCvSharp.Cv2.SqrBoxFilter(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32,OpenCvSharp.Size,System.Nullable{OpenCvSharp.Point},System.Boolean,OpenCvSharp.BorderTypes)"]

ddepth
Type: SystemInt32

[Missing <param name="ddepth"/> documentation for "M:OpenCvSharp.Cv2.SqrBoxFilter(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32,OpenCvSharp.Size,System.Nullable{OpenCvSharp.Point},System.Boolean,OpenCvSharp.BorderTypes)"]

ksize
Type: OpenCvSharpSize

[Missing <param name="ksize"/> documentation for "M:OpenCvSharp.Cv2.SqrBoxFilter(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32,OpenCvSharp.Size,System.Nullable{OpenCvSharp.Point},System.Boolean,OpenCvSharp.BorderTypes)"]

anchor (Optional)
Type: SystemNullablePoint

[Missing <param name="anchor"/> documentation for "M:OpenCvSharp.Cv2.SqrBoxFilter(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32,OpenCvSharp.Size,System.Nullable{OpenCvSharp.Point},System.Boolean,OpenCvSharp.BorderTypes)"]

normalize (Optional)
Type: SystemBoolean

[Missing <param name="normalize"/> documentation for "M:OpenCvSharp.Cv2.SqrBoxFilter(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32,OpenCvSharp.Size,System.Nullable{OpenCvSharp.Point},System.Boolean,OpenCvSharp.BorderTypes)"]

borderType (Optional)
Type: OpenCvSharpBorderTypes

[Missing <param name="borderType"/> documentation for "M:OpenCvSharp.Cv2.SqrBoxFilter(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Int32,OpenCvSharp.Size,System.Nullable{OpenCvSharp.Point},System.Boolean,OpenCvSharp.BorderTypes)"]

See Also