opencv clahe parameters explanation

11,912

Solution 1

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) image

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

Solution 2

clipLimit is the threshold value.

tileGridSize defines the number of tiles in row and column.

More Information

Share:
11,912
hariprasad
Author by

hariprasad

Updated on July 12, 2022

Comments

  • hariprasad
    hariprasad almost 2 years

    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

  • aliiiiiiiiiiiiiiiiiiiii
    aliiiiiiiiiiiiiiiiiiiii over 4 years
    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..