How do I stack several .tiff files into a 3D stack in .mat format?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lauren
le 15 Juil 2016
Réponse apportée : Walter Roberson
le 15 Juil 2016
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?
0 commentaires
Réponse acceptée
Walter Roberson
le 15 Juil 2016
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Biomedical Imaging dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!