How to use imwrite with no compression to save tiff images?

asked 2015-03-02 20:23:52 -0500

pavanbabut gravatar image

I would like to set compression parameters to no compression and save as tiff image. I looked over the internet and even recompiled my sources (2.4.9) with the modification suggested on one of the threads on the internet. Can someone show me the syntax as to how to set those parameters? i am using the following syntax

imwrite(straviFileA, frameA, {TIFFTAG_COMPRESSION, COMPRESSION_NONE}), but it throws error

error C2065: 'TIFFTAG_COMPRESSION' : undeclared identifier

error C2065: 'COMPRESSION_NONE' : undeclared identifier


edit retag flag offensive close merge delete