Ask Your Question

wazhup's profile - activity

2015-12-31 09:51:30 -0600 received badge  Student (source)
2014-09-24 14:45:59 -0600 commented question imread, imwrite , image color

It's the same FLY

2014-09-20 05:22:33 -0600 received badge  Editor (source)
2014-09-20 05:21:04 -0600 asked a question imread, imwrite , image color

Hello everyone.

I'm trying to understand why the following thing happen...

I do

cv::Mat img = cv::imread(sourceImgPath, CV_LOAD_IMAGE_UNCHANGED);

and after that

cv::imwrite(sPath, img);

where the sPath contains the same file extension. The problem here is that the color from image change, is darker. Any explanation? Any solution to avoid this change?

Thank you.