gaussianblurcv

Blur the image, handle, by applying a Gaussian filter.

Syntax

R = gaussianblurcv(handle, ksize, sigmax...)

R = gaussianblurcv(handle, ksize, sigmax, sigmay, bordertype)

Inputs

handle
Handle of an image.
Type: integer
ksize
Vector of two natural numbers specifying the Gaussian kernel size. Either the elements must both be positive and odd numbers or they must both be 0 and sigmax must be greater than 0.
Type: vector
sigmax
Non-negative scalar specifying the Gaussian kernel standard deviation along the x-axis. If sigmax is 0, the elements of ksize must be positive and odd.
Type: scalar
sigmay
Optional non-negative scalar specifying the Gaussian kernel standard deviation along the y-axis. Default value is 0.0.
Type: scalar
bordertype
Optional parameter specifying border type of R. Default value is 4. Valid values are:
0
Type cv::BORDER_CONSTANT.
1
Type cv::BORDER_REPLICATE
2
Type cv::BORDER_REFLECT
3
Type cv::BORDER_WRAP
4
Type cv::BORDER_REFLECT_101 - default
16
Type cv::BORDER_ISOLATED
Type: integer

Outputs

R
Handle of the blurred image.
Type: integer

Examples

Blur an image with Gaussian kernel size specified:

handle = imreadcv('image1.jpg');
R = gaussianblurcv(handle, [5 5], 0.0);
Blur an image with Gaussian kernel size deduced from the Gaussian kernel standard deviation along the x-direction:

handle = imreadcv('image1.jpg');
R = gaussianblurcv(handle, [0 0], 3);