Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem reading multi-image TIFF files
Date: Mon, 09 Nov 2009 07:30:09 -0500
Organization: The MathWorks, Inc.
Lines: 35
Message-ID: <hd920h$mi3$1@fred.mathworks.com>
References: <1257756236.780240@irys.nyx.net>
NNTP-Posting-Host: eddinss-lt.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1257769809 23107 172.31.57.98 (9 Nov 2009 12:30:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 12:30:09 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <HIDDEN>
Xref: news.mathworks.com comp.soft-sys.matlab:583524


Francis Burton wrote:
> I'm trying to read some image stacks in TIFF format using
> imread. The files are created by commercial deconvolution
> software. I get the following error:
> 
> im=imread('1.stk','Index',3);
> ??? 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{:});
> 
> However, the file opens fine with ImageJ, and if I save
> it back to another file, the new file can then be read by
> MATLAB.
> 
> Does this indicate that the original image stack file is
> non-conformant to the TIFF standard, or could it be a
> problem with MATLAB itself?
> 
> (At the moment, I am working round the problem by invoking
> ImageJ in command line mode and getting it to run a macro
> to 'convert' each image stack that needs to be read. This
> is very slow and a horrible kludge.)
> 
> Francis

Can you post the output of imfinfo on the file?

---
Steve Eddins
http://blogs.mathworks.com/steve/