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