find total number of images in a folder
181 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Elysi Cochin
le 2 Mar 2013
Commenté : Walter Roberson
le 12 Août 2019
how to find total number of images in a folder through coding....
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 2 Mar 2013
Modifié(e) : Azzi Abdelmalek
le 2 Mar 2013
a=dir([yourfolder '/*.jpg'])
out=size(a,1)
1 commentaire
Plus de réponses (1)
Mritula C
le 17 Déc 2018
Thanks,
a=dir([yourfolder '/*.jpg'])
This worked fine!!
2 commentaires
Walter Roberson
le 12 Août 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'));
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!