Ask Your Question

Revision history [back]

imwrite image is darker than ofstream version

I have the following code

http://pastebin.com/W9hqfF39

and

http://pastebin.com/W9hqfF39

both are getting an image from a thermal imaging camera; one is saving the image using ofstream and the other with opencv. The opencv image is a lot darker, almost black. Any idea what I'm doing wrong?

Thanks