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
May 1998

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

1998.05.13 04:44 "Reading concatenated tiff files", by Richard Beare
1998.05.13 08:33 "Re: Reading concatenated tiff files", by Bjorn Brox
1998.05.14 07:53 "Re: Reading concatenated tiff files", by Bruno Ledoux
1998.05.14 11:02 "Re: Reading concatenated tiff files", by Bjorn Brox
1998.05.14 10:23 "Re: Reading concatenated tiff files", by Howard Kaikow

1998.05.14 07:53 "Re: Reading concatenated tiff files", by Bruno Ledoux

Hi,

Storing multiple images in a TIFF file not discouraged at all, and works
very well (we currently use it to store multiple resolution of the same
scanned image in one file).
To acces one specific image we do the following:
     ...
     // Open tiff file in a standard way.
     tif = TIFFOpen("file","r");
     // Set the tiff directory you wan't to access
     // (res ranges from 0 to number of image minus one)
     TIFFSetDirectory(tif,(tdir_t)res);
     // Read whatever you want in current image.
     TIFFGetField(...);
     ...
Hope this helps,

Bruno,

>I'm thinking about using concatenated tiff files as a simple movie
>format for visualisation. I am testing the feasability at the moment
>using libtiff-v3.4beta031 , but I am having trouble reading the second
>image. My plan was to open the file, read the first tiff, and then parse
>for the header of the second file, and then call TIFFFdOpen again. This
>process doesn't seem to work. I'm reasonably confident that the parser
>is doing the correct thing, and I suspect that the TIFF i/o routines are
>reseting the file descriptors to the start of the file. (The error
>message is "Can not read TIFF directory.")
>
>If I place a couple of spaces at the start of the file, seek past them,
>and then try to call TIFFFdOpen, I also get errors.
>
>Is there some other technique I could be using? Is this approach
>intended to be discouraged by the tiff library?
>I know that tiff supports multiple images, and I intended to support
>that option later. The concatenated file was just meant to be an easily
>created format.
>
>Any advice appreciated.
>
>--
>Richard Beare
>Richard.Beare@cmis.csiro.au

 ----------------------------------------------------------
            Bruno LEDOUX
            PPC Multimedia, 7 rue du Gabian  98000 MONACO
            http://www.ppc.mc
            tel.: (+377) 97 98 41 60
            fax : (+377) 97 98 41 61