You can use the dir
function in MATLAB to get a list of all the .tiff
files in the user-input directory. Then you can loop through this list and load each image using the imread
function. You can store each image in a structure using the filename as the field name.
Here's an example code:
main.m401 chars16 lines
This code will create a structure called images
where each field is a .tiff
filename and the value is the corresponding image data. You can access the individual images using dot notation, e.g. images.image1.tiff
.
gistlibby LogSnag