Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

opencv clahe parameters explanation

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

like image 659
hariprasad Avatar asked Jul 21 '16 12:07

hariprasad


People also ask

How does Clahe algorithm work?

In CLAHE technique, an input original image is divided into non-overlapping contextual regions called sub-images, tiles or blocks. The CLAHE has two key parameters: Block Size (BS) and Clip Limit (CL). These two parameters mainly control enhanced image quality.

How do you determine clip limit in Clahe?

clip-limit is the contrast limit for localized changes in contrast. A clip-limit of 2 to 3 is a good starting place (e.g. -clahe 50x50%+128+3). Very large values will let the histogram equalization do whatever it wants to do, that is result in maximal local contrast. The value 1 will result in the original image.

What is Clahe filter?

CLAHE is a variant of Adaptive histogram equalization (AHE) which takes care of over-amplification of the contrast. CLAHE operates on small regions in the image, called tiles, rather than the entire image. The neighboring tiles are then combined using bilinear interpolation to remove the artificial boundaries.


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

like image 200
aliiiiiiiiiiiiiiiiiiiii Avatar answered Sep 23 '22 10:09

aliiiiiiiiiiiiiiiiiiiii