Smooths uniform areas without blurring edges: each neighbour is weighted by its distance and by how similar its value is to the centre pixel.
Parameters
| Parameter | Meaning |
|---|---|
| Neighbourhood diameter | d, neighbourhood diameter in pixels. Large values (above 9) are slow. |
| Sigma colour | σc: intensity difference beyond which two pixels "do not look alike". Large = behaves like a Gaussian. |
| Sigma space | σs: spatial reach of the average, in pixels. |
References
- OpenCV 4.x documentation — Image Filtering (GaussianBlur, blur, medianBlur, bilateralFilter, morphologyEx). docs.opencv.org/4.x/d4/d86/group__imgproc__filter.html
- C. Tomasi, R. Manduchi. "Bilateral filtering for gray and color images." Proceedings of the Sixth International Conference on Computer Vision (ICCV), pp. 839–846, 1998.