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)?

回答 (1 件)

Jiro Doke
Jiro Doke 2011 年 4 月 17 日

0 投票

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.

この質問は閉じられています。

タグ

質問済み:

2011 年 4 月 17 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by