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

7 ビュー (過去 30 日間)
Lauren
Lauren 2016 年 7 月 15 日
回答済み: Walter Roberson 2016 年 7 月 15 日
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 件)

カテゴリ

Help Center および File ExchangeBiomedical Imaging についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by