I would like to know proper explanation of the clahe parameters
i.e clipLimit and tileGridSize
.
and how does clipLimit
value effects the contrast of the image and what factors(like image resolution, object sizes) to be considered to select tileGridSize
.
Thanks in advance

- 838
- 1
- 8
- 16
-
You look at the following link to get better understanding of clipLimit. – Jeru Luke Dec 28 '16 at 10:08
-
1`tileGridSize` refers to the kernel size that you are considering to perform CLAHE operation. – Jeru Luke Dec 28 '16 at 10:09
-
https://stackoverflow.com/questions/64576472/what-does-clip-limit-mean-exactly-in-opencv-clahe – Jeru Luke Apr 30 '22 at 17:14
2 Answers
this question is for a long time ago but i searched for the answer and saw this,then i found some links which may help,obviously most of below information are from different sites.
AHE is a computer image processing technique used to improve contrast in images. It differs from ordinary histogram equalization in the respect that the adaptive method computes several histograms, each corresponding to a distinct section of the image, and uses them to redistribute the lightness values of the image. It is therefore suitable for improving the local contrast and enhancing the definitions of edges in each region of an image. and , AHE has a tendency to over-amplify noise in relatively homogeneous regions of an image ,A variant of adaptive histogram equalization called contrast limited adaptive histogram equalization (CE) prevents this by limiting the amplification.
for first one this image can be useful:
CLAHE limits the amplification by clipping the histogram at a predefined value (called clip limit)
tileGridSize refers to Size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles. tileGridSize defines the number of tiles in row and column.
it is opencv documentation about it's available functions: https://docs.opencv.org/master/d6/db6/classcv_1_1CLAHE.html
and this link was good at all: https://en.wikipedia.org/wiki/Adaptive_histogram_equalization#Contrast_Limited_AHE http://www.cs.utah.edu/~sujin/courses/reports/cs6640/project2/clahe.html

- 189
- 1
- 9
-
ah,it wasn't an argument,I just wanted to know the true way so I asked.tnx for your answer.well I edit it know.. – aliiiiiiiiiiiiiiiiiiiii Nov 11 '19 at 17:00
clipLimit is the threshold value.
tileGridSize defines the number of tiles in row and column.

- 9
- 1