Bilateral Filtering the Input Image
img_ret=cv_bilateralfilter(image,d,sigmaColor,sigmaSpace)
Input Image
Diameter of each pixel neighborhood that is used during filtering
Filter sigma in the color space. A larger value of the parameter means that farther colors within the pixel neighborhood will be mixed together, resulting in larger areas of semi-equal color.
Filter sigma in the coordinate space. A larger value of the parameter means that farther pixels will influence each other as long as their colors are close enough. When d>0 , it specifies the neighborhood size regardless of sigmaSpace . Otherwise, d is proportional to sigmaSpace.
Returned Image after filtering
Provides Bilateral Filtering to Input image
This filter can reduce noise of the image while preserving the edges. The drawback of this type of filter is that it takes longer to filter the input image.