<p>Read this - <a href="https://arxiv.org/pdf/1811.02308.pdf" rel="nofollow noreferrer">https://arxiv.org/pdf/1811.02308.pdf</a>
It has the math of adaptive bilateral filter. Let me know if you need help. </p>

<p>The kernel size is used for the local variance calculation, and where pixels will contribute (in a weighted manner).</p>

<p>sigmaSpace filters sigma in the coordinate space. The larger value of the parameter means that farther pixels will influence each other </p>

<p>For Example:
    img = cv2.bilateralFilter(image, 20, 5)</p>
Adaptive bilateral filter in opencv python2.7 implimentation
<p>I want to use adaptive bilateral filter in python using opencv. But I am not able to understand how to put the parameters or what should be the values. This is what I found in OpenCV 2.4 documentation.</p>

<p>cv2.adaptiveBilateralFilter(src, ksize, sigmaSpace[, dst[, maxSigmaColor[, anchor[, borderType]]]])</p>

<p>Can anybody give me example for implementation of this function? </p>