FilterBoxMean Method (Image, Size2D)

CVB.Net Documentation
This function sets each pixel in the output image to the average of all the input image pixels in the rectangular neighborhood defined by the maskSize parameter.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image BoxMean(
	Image img,
	Size2D maskSize
)

Parameters

img
Type: Stemmer.CvbImage
Image to be filtered
maskSize
Type: Stemmer.CvbSize2D
Filter mask to be used

Return Value

Type: Image
The filtered image
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed
Remarks

This has the effect of smoothing or blurring the input image. Mask offset is automatically set to the center of the image.
See Also

Reference