Professional Documents
Culture Documents
Histogram Equalization
Histogram Equalization
https://en.wikipedia.org/wiki/Histogram_equalization
https://docs.opencv.org/3.4/d4/d1b/tutorial_histogram_equalization.html
https://docs.opencv.org/master/d5/daf/tutorial_py_histogram_equalization.html (CLAHE)
https://www.pyimagesearch.com/2021/02/01/opencv-histogram-equalization-and-adaptive-
histogram-equalization-clahe/
https://docs.opencv.org/master/d6/dc7/
group__imgproc__hist.html#gad689d2607b7b3889453804f414ab1018 (for cv.CLAHE parameters)
clipLimit – This parameter sets the threshold for contrast limiting. The
default value is 40.
tileGridSize – This sets the number of tiles in the row and column. By
default this is 8×8. It is used while the image is divided into tiles for applying
CLAHE.
1. --clip
: The threshold for contrast limiting. You’ll typically want to leave
this value in the range of
2-5
. If you set the value too large, then effectively, what you’re doing is
maximizing local contrast, which will, in turn, maximize noise
(which is the opposite of what you want). Instead, try to keep this
value as low as possible.
2. --tile
: The tile grid size for CLAHE. Conceptually, what we are doing
here is dividing our input image into
tile x tile
cells and then applying histogram equalization to each cell (with
the additional bells and whistles that CLAHE provides).