in wat order multiple images will be read and store in workspce?

Suppose I have a 10 images in a folder and I read those images using imread() and in the workspace i get a matrix of size 30x30x10. where 30x30 in size of each image and 10 is the total number of images. Now my question is, in what order imread reads images. i mean to say is it the same order the second image in folder will be (:,:,2) in workspace and last image in (:,:,10)?

Answers (1)

That depends on how you read it in. You can't read all 10 images with a single imread command. You would have to use 10 imread commands or do them in a loop, so in that case you should know which order you're reading them in.

This question is closed.

Asked:

on 17 Apr 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!