find total number of images in a folder
167 次查看(过去 30 天)
显示 更早的评论
how to find total number of images in a folder through coding....
0 个评论
采纳的回答
更多回答(1 个)
Mritula C
2018-12-17
Thanks,
a=dir([yourfolder '/*.jpg'])
This worked fine!!
2 个评论
Walter Roberson
2019-8-12
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'));
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!