Using the Tiff class to read image sequences instead of stacks

1 view (last 30 days)
Hi there,
I want to read (as fast as possible of course) multi-dimensionnal (5D) microscopy images (eg. Height x Width x Channels x # of Z planes x # T frames) and making RGB composites from them. Right now I'm using imread inside for loops to read all the images. hFiles is the structure in which I read all the names and store corresponding images to MatrixWithImages.
InfoImages = imfinfo('...name of the first image');
i = 0;
m = 0;
for x = 1:NumberChannels
for y = 1:NumberSlices
for z = 1:NumberFrames
MatrixWithImages(:,:,x,y,z) = imread(hFiles(z+i+m).name,'Info',InfoImages);
end
i = i + NumberFrames;
end
i = 0;
m = m + NumberSlices;
end
% ... code to make composite images .
I would like to take advantage of the Tiff class since it would surely speed up the process for large datasets, however I don't know how to use it to read images stored as sequences instead of stacks. I guess it does not make sense to create one Tiff object for every image in the sequence, so I'm a bit lost.
Can anybody help me on this?
Thanks.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!