clahe opencv

Solutions on MaxInterview for clahe opencv by the best coders in the world

showing results for - "clahe opencv"
Lucia
25 Jan 2016
1bgr = cv2.imread(image_path)
2lab = cv2.cvtColor(bgr, cv2.COLOR_BGR2LAB)
3lab_planes = cv2.split(lab)
4gridsize=8
5clahe = cv2.createCLAHE(clipLimit=2.0,tileGridSize=(gridsize,gridsize))
6lab_planes[0] = clahe.apply(lab_planes[0])
7lab = cv2.merge(lab_planes)
8bgr = cv2.cvtColor(lab, cv2.COLOR_LAB2BGR)