Hi,
The answer is in the Matlab response you got:
>?? Invalid TIFF image index
specified.
This will only work if your file
'mri.tif' is a multi-image file, containing more than one 2-D
images. Have you tried using idx = 3,4,..As a definate clue try checking
the dimensions of mri.tif file.
I can guide you much better if you can email me a short
portion of this multi-image file.
Regards.
Imran.
>From: ku daychyi
>To: m...@yahoogroups.com
>Subject: [matlab] mri
again
>Date: Wed, 27 Feb 2002 20:06:45 -0800 (PST)
>
>Hi,
>can you help me for this:
>[mri(:,:,:,1),map] = imread('mri.tif',1);
>when i read the mri image just the first frame, the
>matlab didn't show me any error msg.
>but when
i ask for reading 2 frame in the mri image:
>[x(:,:,:,2),map] =
imread('mri.tif',2);
>give me the error:
>?? Invalid TIFF image index specified.
>
>Error in ==>
>C:\MATLAB6P1\toolbox\matlab\iofun\private\rtifc.dll
>Error in ==>
>C:\MATLAB6P1\toolbox\matlab\iofun\private\readtif.m
>On line 25 ==> [X,map] = rtifc(filename, index);
>
>Error in ==>
>C:\MATLAB6P1\toolbox\matlab\iofun\imread.m
>On line
242 ==> [X,map] = readtif(filename,
>extraArgs{:});
>
>nay help
>Thank's
>