| cv.bilateralFilter - MATLAB File Help |
Applies the bilateral filter to an image
result = cv.bilateralFilter(img)
result = cv.bilateralFilter(img, 'OptionName', optionValue, ...)
src.SigmaSpace.
Default 7SigmaSpace) will be mixed together, resulting in larger areas of
semi-equal color. Default 50.0SigmaColor). When Diameter>0, it
specifies the neighborhood size regardless of SigmaSpace. Otherwise,
Diameter is proportional to SigmaSpace. Default 50.0The function applies bilateral filtering to the input image, as described in [CVonline]. cv.bilateralFilter can reduce unwanted noise very well while keeping edges fairly sharp. However, it is very slow compared to most filters.
Sigma values: For simplicity, you can set the 2 sigma values to be the
same. If they are small (< 10), the filter will not have much effect,
whereas if they are large (> 150), they will have a very strong effect,
making the image look "cartoonish".
Filter size: Large filters (Diameter > 5) are very slow, so it is
recommended to use Diameter=5 for real-time applications, and perhaps
Diameter=9 for offline applications that need heavy noise filtering.
[CVonline]: