Ask Your Question
1

Saving IR images

asked 2012-10-15 09:44:23 -0500

andrea.delbravo gravatar image

updated 2012-10-16 01:47:37 -0500

Kirill Kornyakov gravatar image

Hello, I managed to load an IR image captured by an IR camera with a legacy format. I manage to see the image which are with a very poor contrast (almost grey, but something can be seen). I tried to save the image in a bmp format (imwrite("filename.bmp", image_IR)) but the resulting image is completely white.

Does anybody have any suggestion?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2012-10-15 10:00:43 -0500

Michael Burdinov gravatar image

The image is white because it is stored as 8 bit image. I guess values in your 16 bit image are bigger than 255. You should first convert your image to 8 bit with appropriate scaling (1/256.0) by calling to convertTo function.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-10-15 09:44:23 -0500

Seen: 280 times

Last updated: Oct 16 '12