Making an array out of set of images in a folder

2 views (last 30 days)
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
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
Premraj Thakur
Premraj Thakur on 28 Feb 2015
There's something called as the "average gait energy image " whose each and every pixel will have a grey value which would be the average of all the grey values of that particular pixel over all the images. So was thinking about performing the addition by running a loop through an array .
Image Analyst
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;

Sign in to comment.

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!