bilateralfiltercv

Apply a bilateral filter on the image, handle.

Syntax

R = bilateralfiltercv(handle, diameter, sigmacolor, sigmaspace...)

R = bilateralfiltercv(handle, diameter, sigmacolor, sigmaspace, type)

Inputs

handle
Handle of an image.
Type: integer
diameter
Diameter of the filter.
Type: integer
sigmacolor
Standard deviation of the color term of the filter.
Type: scalar
sigmaspace
Standard deviation of the space term of the filter.
Type: scalar
type
Optional type specifying the pixel extrapolation method. 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 image with a bilateral filter applied.
Type: integer

Example

Apply a bilateral filter with default options:

handle = imreadcv('image1.jpg');
diameter = 100;
sigmacolor = 100;
sigmaspace = 100;
R = bilateralfiltercv(handle, 10, 100, 100);