Ask Your Question

Revision history [back]

cv::LUT is great for this kind of thing. Create one or more lookup tables for the curves (either the same for all or seperate ones for RGB), and then map all of the pixel values through it to do the remap.