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.
- ksize
- Vector of two positive integers specifying the kernel size.
- anchor
- Optional vector of two integers specifying the anchor point. Default value is [-1, -1], indicating kernel center.
- 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
Outputs
- R
- Handle of the blurred image.
Example
Blur an image with default options:
handle = imreadcv('bird3.jpg');
R = blurcv(handle, [4, 50]);