How do I stack several .tiff files into a 3D stack in .mat format?

I have attained several tiff images from a microCT scanner and want to be able to stack them in a 3D matrix as a .mat format enable me to analysis them in a DVC simulator. How do I do this?

 채택된 답변

Walter Roberson
Walter Roberson 2016년 7월 15일
dinfo = dir('*.tiff');
num_files = length(dinfo);
for K = num_files : -1 : 1 %backwards is more efficient
thisname = dinfo(K).name;
thisimage = imread(thisname);
all_images(:,:,K) = thisimage;
end
save('AllImages.mat', 'all_images');

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Biomedical Imaging에 대해 자세히 알아보기

태그

질문:

2016년 7월 15일

답변:

2016년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by