I'm using openCV 2.4.9 and I have a problem with images.
I have this original imagem,
In C++ I do,
cv::Mat img = cv::imread(sourceImgPath, CV_LOAD_IMAGE_UNCHANGED);
imshow("test", img); //or imwrite(path, img);
And with imshow or imwrite I get always the following image,
So as you can see, it's darker and I have no idea why this happen. I have tried all the flags from imread but it does the same thing. Anyone can help?
Thanks for your time. I really appreciate your help.
Wazhup