First time here? Check out the FAQ!
answered 2013-07-16 08:46:56 -0600
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.