imwrite bmp

asked 2018-11-16 01:30:45 -0600

Insoo gravatar image

Hello. I try to save bmp file that is big size (4096 x 153600) and mono. I can save it as "png", but I cannot save the big file as bmp. Let me know how to save the big file as "bmp"? Thank you.

edit retag flag offensive close merge delete

Comments

opencv version, os, compiler ?

any chance, you're on a 32bit os, and that it is a memory problem ?

or that your disc cannot hold another 600mb image ? (that sounds very likely ..)

(i can't reproduce your problem on win64, 3.4-dev)

berak gravatar imageberak ( 2018-11-16 01:43:08 -0600 )edit

Thank you for your reply. I use 64 OS and OpenCV version is 3.40. I am sorry, I want to change my queston. I can save and read its big file, but its properties are not correct. If file size is less than 4096 x 117760, its properties are correct (Image view program can display its header information.

Insoo gravatar imageInsoo ( 2018-11-16 03:45:10 -0600 )edit

please edit your question, then, and make it more clear ;)

berak gravatar imageberak ( 2018-11-16 03:49:45 -0600 )edit

Is it possible to save your file in BMP ?

[12     18  2   The bitmap width in pixels (unsigned 16-bit)
14  20  2   The bitmap height in pixels (unsigned 16-bit)]

(https://en.wikipedia.org/wiki/BMP_fil...)

LBerger gravatar imageLBerger ( 2019-01-25 02:26:33 -0600 )edit