Ask Your Question

Revision history [back]

stretch dynamic range keeping original ratios of the color channels


I'd like to separately adjust the dynamic range of each color channel of an image but under the constraint that the original ratios in each bin shouldn't deviate more than some fixed percentage. Any idea how one can implement that? Is there maybe even something already there in OpenCV?