How to batch process grayscale images with PIL/Pillow/NumPy to force highlight/midtone/shadow ratios
How can I transform the histograms of grayscale images to enforce a particular ratio of highlights/midtones/shadows?