find total number of images in a folder
Mostrar comentarios más antiguos
how to find total number of images in a folder through coding....
Respuesta aceptada
Más respuestas (1)
Mritula C
el 17 de Dic. de 2018
Thanks,
a=dir([yourfolder '/*.jpg'])
This worked fine!!
2 comentarios
Saurabh Sharma
el 11 de Ag. de 2019
What did you write in place of "yourfolder" ?
Walter Roberson
el 12 de Ag. de 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'));
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!