Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!m35g2000vbi.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem reading multi-image TIFF files
Date: Mon, 9 Nov 2009 03:28:38 -0800 (PST)
Organization: http://groups.google.com
Lines: 34
Message-ID: <5aa1ff6c-4d5e-4f87-8f25-f8ea149c6ac9@m35g2000vbi.googlegroups.com>
References: <1257756236.780240@irys.nyx.net>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257766118 31466 127.0.0.1 (9 Nov 2009 11:28:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 9 Nov 2009 11:28:38 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m35g2000vbi.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	GTB6; CyberSafe-IWA-Enable; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 
	3.0.04506.648; .NET CLR 3.5.21022; AskTB5.5),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:583512


On Nov 9, 3:43 am, Francis Burton <fbur...@nyx.net> 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

-----------------------------------------------------------------
What version do you have?  R2009b has a new Tiff reader function that
you can use instead of imread.  But I bet imread will still work if
you call it correctly and have a valid image.