Posted by
Herbie-4 on
Apr 02, 2015; 1:18pm
URL: http://imagej.273.s1.nabble.com/Get-the-number-of-frames-from-a-multiple-tiff-header-tp5012283p5012326.html
Bonjour Sébastien,
of course the number of slices is contained in the TIFF-header, but you
have to find it...
The thing is that the TIFF-definition is extremely flexible and in order
to get a desired tag value you need to understand the header format.
Just do a search.
A look at the source code of the ImageJ-PlugIn "tiff_tags.jar" of
Joachim Wesner may help. See:
<
http://rsb.info.nih.gov/ij/plugins/tiff-tags.html>
HTH
Herbie
::::::::::::::::::::::::::::::::::::::
Am 02.04.15 um 14:14 schrieb mailfert:
> Thanks your very much for your answers.
>
> For a tiff file containing 4086 slices (frames) which corresponds to a 2Go
> file, it takes:
>
> *2 minutes and 30 seconds *on a computer: Intel Xeon E5-1620 @3.6GHz + RAM
> 8Go
> and
> *22 secondes *on a second computer: Intel Xeon E5-2630 @2.3GHz + RAM 16Go
> *16 secondes *on a second computer: Intel Core I7-4770 @3.4GHz + RAM 16Go
>
> I don't understand why we should read all the headers just to know the
> number of slices.
> This should be in the ideal world instantaneous as it is to know the image
> size.
>
> Why theheader is not designed to contain the number of slices directly?!!!
>
> Thanks in advance for your precious comments.
>
> Best regards.
> Sébastien
>
>
>
>
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Get-the-number-of-frames-from-a-multiple-tiff-header-tp5012283p5012322.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html