So, I'm trying to increase contrast and brightness with OpenCV. This is what I do:
Mat image_copy;
cvtColor(image, image_copy, CV_BGRA2BGR);
image_copy.convertTo(image, -1, 1.3, 0.15);
The image I get looks very strange. It has a blue tint. Red and blue colors are upside down. So, my red jumper is blue, and the blue bath on the table is red.
Why?
Basically, I am trying to achieve the same effect as when setting the contrast 30 and the brightness to 15 here:
http://camanjs.com/examples/
source
share