Python implementation of paper by Lee, Chulwoo, Chul Lee, and Chang-Su Kim. "Contrast enhancement based on layered difference representation of 2D histograms." IEEE transactions on image processing 22.12 (2013): 5372-5384.
Adapted directly from MATLAB implementation by authors of the paper: http://mcl.korea.ac.kr/projects/LDR/LDR_v1_0.zip
Implements contrast enhancement for images