blurcv

Uses normalized box filter to blur an image.

Syntax

R = blurcv(handle, ksize...)

R = blurcv(handle, ksize, anchor, type)

Inputs

handle
Handle of an image.
Type: integer
ksize
Vector of two positive integers specifying the kernel size.
Type: vector
anchor
Optional vector of two integers specifying the anchor point. Default value is [-1, -1], indicating kernel center.
Type: vector
type
Optional parameter specifying pixel extrapolation mode. 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_DEFAULT - default
16
Type cv::BORDER_ISOLATED
Type: integer

Outputs

R
Handle of the blurred image.
Type: integer

Example

Blur an image with default options:

handle = imreadcv('bird3.jpg');
R = blurcv(handle, [4, 50]);
Figure 1. Input image


Figure 2. Output image