Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think you have to load the tif file into a char(or byte) array.(buf) Then use Mat imdecode(InputArray buf, int flags) Then you will get the size of the first image out of the returnend Mat. With the size of the first image you can delete it from the buffer and you will get the second image.

I think you have to load the tif file into a char(or byte) array.(buf) Then use Mat imdecode(InputArray buf, int flags) Then you will get the size of the first image out of the returnend Mat. With the size of the first image you can delete it from the buffer and you will get the second image.

http://www.awaresystems.be/imaging/tiff/faq.html