Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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

thanks