Making an array out of set of images in a folder
2 views (last 30 days)
Show older comments
I am working on a gait analysis project. I have a folder,named silhouettes, in D drive that contains sub-folders and each sub-folder contains the sample images taken for a different individual. I need to operate on the images associated with each of the individuals by making an array of the images. But I am unable to find out a suitable syntax to create an array of images Hope I could get some help from users here.
0 Comments
Answers (1)
Image Analyst
on 22 Feb 2015
Why do you need an array of images? Why not just read in the image you need. Or use the FAQ to read them all into a cell array if, for some reason, you need all of the images in memory at the very same time. http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
2 Comments
Image Analyst
on 28 Feb 2015
I'd just read them in and put each one into the slice of a 3D array
thisImage = imread(......)
image3D(:,:,sliceNumber) = thisImage;
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!