Ask Your Question
0

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

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

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

thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-10-09 09:05:12 -0600

trobro gravatar image

I suppose you have solved it by now... For anyone googling into this question: The identifiers are declared in 3rdparty/libtiff/tiff.h

#define TIFFTAG_COMPRESSION     259 /* data compression technique */
#define     COMPRESSION_NONE        1   /* dump mode */
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-02 20:23:52 -0600

Seen: 3,067 times

Last updated: Mar 02 '15