2007.07.20 20:14 "[Tiff] Reading the strip byte count array", by Christian Henning
Hi there, I have a problem getting the strip byte counts array. If I read a tiff file using the tiff_viewer it tells me the strip byte counts count is 222. First of all I don't understand how this number is calculated.
Taking the documentation it says:
strips_per_image = floor( image_length + rows_per_strip - 1 ) / rows_per_strip;
First of all, what is image_length. Is that somewhere defined?
But even when I use this number the function
TIFFGetField( img, TIFFTAG_STRIPBYTECOUNTS, &buffer );
it only gives me the first value that doesn't make much sense.
Can somebody tell what I'm doing wrong?