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.
- diameter
- Diameter of the filter.
- sigmacolor
- Standard deviation of the color term of the filter.
- sigmaspace
- Standard deviation of the space term of the filter.
- 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
Outputs
- R
- Handle of image with a bilateral filter applied.
Example
handle = imreadcv('image1.jpg');
diameter = 100;
sigmacolor = 100;
sigmaspace = 100;
R = bilateralfiltercv(handle, 10, 100, 100);