AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.07.05 13:18 "Problem in understanding the attrib STRIPOFFSETS", by Sulabh Agrawal
2004.07.05 18:05 "Re: Problem in understanding the attrib STRIPOFFSETS", by Andrey Kiselev

2004.07.05 18:05 "Re: Problem in understanding the attrib STRIPOFFSETS", by Andrey Kiselev

On Mon, Jul 05, 2004 at 01:18:48PM -0000, sulabh  agrawal wrote:
> Am new to this field n having a problem in uderstanding the values
> returned by the parameters StripOffsets and StripBytecounts.
> 
> Actually the problem is that the input TIFF file is only of size
> 6.76KB and the values returned by the parameter StripOffsets and
> StripByteCounts are 3090728 and 3096408 respectively .. that exceeds
> the size of the File.

If you are using libtiff you don't need to read StripOffsets/ByteCounts
directly, the library does it for you. You should use
TIFFReadEncodedStrip() or TIFFReadTile() functions to get the actual
data for the specified chunk. Of course, you can always read contents of
those tags using TIFFGetField().

Anyway, what results the tiffinfo and tiffdump utilities produce on
your file?

> So, what is it and i want to know if i want to read the image length
> wise that is (the 61*874 is the dimension of the image in pixels)
> lets say 61*1 they how should i go on proceeding into it ... 

For such small image you can work in any manner. For example, you can
allocate the buffer for the whole image and fill it by reading
strips/tiles one by one (most probably that the whole image contained in
the single strip).

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517