Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!bnewspeer01.bru.ops.eu.uu.net!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!ash.uu.net!spool.news.uu.net!not-for-mail
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem reading multi-image TIFF files
References: <1257756236.780240@irys.nyx.net> <hd920h$mi3$1@fred.mathworks.com> <1257773344.408697@irys.nyx.net> <hd96u0$7r4$1@fred.mathworks.com>
Organization: Nyx, Spirit of the Night
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
From: fburton@nyx.net (Francis Burton)
Originator: fburton@nyx.net (Francis Burton)
Message-ID: <1257777385.326999@irys.nyx.net>
Cache-Post-Path: irys.nyx.net!1319@nyx3.nyx.net
X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
Date: 09 Nov 2009 14:36:25 GMT
Lines: 44
NNTP-Posting-Host: 206.124.29.6
X-Trace: 1257777385  10438 206.124.29.6
Xref: news.mathworks.com comp.soft-sys.matlab:583556


In article <hd96u0$7r4$1@fred.mathworks.com>,
Steve Eddins  <Steve.Eddins@mathworks.com> wrote:
>It wasn't clear to me in your other post whether the output of imfinfo 
>for the original file was a single structure or a structure array.
>
>What does this return:
>
>numel(imfinfo('original.stdk'))

Ah, good point. This is what I see:

>> f=imfinfo('1.stk');
Warning: The computation of the tag value for "" involves division
by zero.  The value has been set to NaN. 
>> numel(f)

ans =

     1

On the other hand:

>> f=imfinfo('1.tif');  % 1.tif is processed version of 1.tsk
>> numel(f)

ans =

     9

Also, I can do im=imread('1.stk') without any errors, but it only
lets me retrieve the first image in the stack, thus:

>> im=imread('1.stk','Index',1);
>> im=imread('1.stk','Index',2);
??? Error using ==> rtifc
Invalid TIFF image index specified.

Error in ==> readtif at 52
[X, map, details] = rtifc(args);

Error in ==> imread at 430
    [X, map] = feval(fmt_s.read, filename, extraArgs{:});

Francis