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.
Adpated directly from MATLAB implementation by authors of the paper (available on their website)
Implements contrast enhancement for images