Using the Tiff class to read image sequences instead of stacks
조회 수: 6 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!