フィルターのクリア

HOw to read images from multiple folders

1 回表示 (過去 30 日間)
Tallha Akram
Tallha Akram 2012 年 4 月 16 日
Hi,
I have 10 folders and in each folder i have 10 images as( 1.jpg, 2.jpg, 3.jpg... 10.jpg).
I want to read all ten folders and total number of images are (10*10)=100;
Thanks in Advance.
  2 件のコメント
Geoff
Geoff 2012 年 4 月 16 日
Have you already written the code to load images from one folder? What are your folder names?
Tallha Akram
Tallha Akram 2012 年 4 月 16 日
no i havnt written the code.
it is in drive E, folder is images/(40 folders of name 1,2,3,4)
folder1---> 10 images (1.jpg,2.jpg... 10.jpg)
folder2---> same images
.
.
.
Folder 10---> same images

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 4 月 16 日
The above, which concentrates on files, can also be used for locating directories.
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 4 月 16 日
http://www.mathworks.com/matlabcentral/answers/32038-can-you-use-dir-to-list-files-in-subfolders

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by