variable or struct index creation
Afficher commentaires plus anciens
I am working with a huge set of image stacks. Instead of importing 100 images 1 by 1, I want to do this programmatically. I would like to either:
1) create a variable with the image name i.e. traces01, traces 02, ... traces 99. similiar to the command below
traces01 = imread('traces01.tif');
2) bring all images into a struct similiar to below
images.traces01 = imread('traces01.tif');
I have successfully created a ImportName variable with all 100 image names through the sprintf command using a for loop. I just cannot figure out how to now move to using a for loop to accomplish
images.ImportName(i) = imread(ImportName(i));
thanks for anyone's help.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!