find total number of images in a folder
조회 수: 103 (최근 30일)
이전 댓글 표시
how to find total number of images in a folder through coding....
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 3월 2일
편집: Azzi Abdelmalek
2013년 3월 2일
a=dir([yourfolder '/*.jpg'])
out=size(a,1)
댓글 수: 1
추가 답변 (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!