Reply by imran mushtaq February 26, 20022002-02-26

Hi,

I suggest using CAT function in Matlab. It concatenates arrays. The usage is:
    CAT(DIM,A,B) concatenates the arrays A and B along
    the dimension DIM. 

I think you can easily manage a 4-D array like this.

Regards.

Imran.

>From: ku daychyi
>To: m...@yahoogroups.com
>CC: q...@hotmail.com
>Subject: [matlab] multiframe image read
>Date: Tue, 26 Feb 2002 06:34:10 -0800 (PST)
>
>Hi Friend,
>any one have any idea how to make this thing work's
>i want to initialize an 4 D array and just using
>imread, as this code mention but i didn't success to
>make run all the time give me this message:
>??? Invalid TIFF image index specified.
>
>% Initialize an array to hold the 27 frames of mri.tif
>mri = uint8(zeros(128,128,1,27));
>for frame=1:27
> % Read each frame into the appropriate frame in
>memory
> [mri(:,:,:,frame),map] = imread('mri.tif',frame);
>end
>imshow(mri(:,:,:,3),map);
>
>any idea
>
>


Join the worlds largest e-mail service with MSN Hotmail. Click Here
Reply by ku daychyi February 26, 20022002-02-26
Hi Friend,
any one have any idea how to make this thing work's
i want to initialize an 4 D array and just using
imread, as this code mention but i didn't success to
make run all the time give me this message:
??? Invalid TIFF image index specified.

% Initialize an array to hold the 27 frames of mri.tif
mri = uint8(zeros(128,128,1,27));
for frame=1:27
% Read each frame into the appropriate frame in
memory
[mri(:,:,:,frame),map] = imread('mri.tif',frame);
end
imshow(mri(:,:,:,3),map);

any idea