Start » Filter Reference » OpenCV » Image Filtering » cvGaussianBlur

cvGaussianBlur


Module: OpenCV

Smoothes image using a Gaussian filter.

Name Type Range Description
Input value
inSrc Image Source image.
Input value
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.
Input value
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.
Input value
inSigmaX Real Gaussian kernel standard deviation in X direction.
Input value
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.
Input value
inBorderType CvBorderType Pixel extrapolation method.
Output value
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.