Applies the bilateral filter to an image.
cv2.bilateralFilter(src, d, sigmaColor, sigmaSpace[, dst[, borderType]]) → dst
sigmaSpace
.sigmaSpace
) will be mixed together, resulting in larger areas of semi-equal color.sigmaColor
). When d
> 0, it specifies the neighborhood size regardless of sigmaSpace . Otherwise, d
is proportional to sigmaSpace
.src
.cv2.BORDER_*
): Pixel extrapolation method. Default is BORDER_DEFAULT. Choose from:
The function applies bilateral filtering to the input image, as described in this paper. The bilateralFilter
function can reduce unwanted noise very well while keeping edges fairly sharp. However, it is very slow compared to most filters.
copyMakeBorder
, otherwise the default value is set to 0.