find total number of images in a folder
103 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Elysi Cochin
il 2 Mar 2013
Commentato: Walter Roberson
il 12 Ago 2019
how to find total number of images in a folder through coding....
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 2 Mar 2013
Modificato: Azzi Abdelmalek
il 2 Mar 2013
a=dir([yourfolder '/*.jpg'])
out=size(a,1)
1 Commento
Più risposte (1)
Mritula C
il 17 Dic 2018
Thanks,
a=dir([yourfolder '/*.jpg'])
This worked fine!!
2 Commenti
Walter Roberson
il 12 Ago 2019
The folder name that you wanted to find the images of.
We recommend using fullfile() instead of the code there:
yourfolder = 'C:\Students\CS907\Assignment3\BananaPictures';
a = dir(fullfile(yourfolder, '*.jpg'));
Vedere anche
Categorie
Scopri di più su Modify Image Colors in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!