Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image Filtering » cvGaussianBlur

cvGaussianBlur


Smoothes image using a Gaussian filter.

Name Type Range Description
inSrc Image Source image.
inKWidth Integer 1 - Gaussian kernel width. It must be positive and odd. Or if both kernel dimensions are zero's, it is computed from sigma.
inKHeight Integer 1 - Gaussian kernel height. It must be positive and odd. Or if both kernel dimensions are zero's, it is computed from sigma.
inSigmaX Real Gaussian kernel standard deviation in X direction.
inSigmaY Real Gaussian kernel standard deviation in Y direction. If sigmaY is zero, it is set to be equal to sigmaX. If both sigmas are zeros, they are computed from ksize.width and ksize.height, respectively.
inBorderType CvBorderType Pixel extrapolation method.
outDst Image Output image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inKWidth and inKHeight both must be positive and odd in cvGaussianBlur
DomainError Input image must have pixel type different from Int8 and Int32 in cvGaussianBlur.
DomainError Input image must not be empty in cvGaussianBlur.

Complexity Level

This filter is available on Basic Complexity Level.