Making an array out of set of images in a folder
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.
Answers (1)
Image Analyst
on 22 Feb 2015
0 votes
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
Premraj Thakur
on 28 Feb 2015
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;
Categories
Find more on Images 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!