how to compute the number of image from subfolder ?

조회 수: 1 (최근 30일)
youb mr
youb mr 2020년 9월 7일
편집: Jan 2020년 9월 7일
hello every one i want to compute the number of images from image dataset witch have many subfolder
d = dir(fullfile(('.\databasee\')))
num =length(d)
witch databasee it's the folder that contain many subfolder of images when i run the code it doesn't give me the number of imges

채택된 답변

Jan
Jan 2020년 9월 7일
편집: Jan 2020년 9월 7일
fullfile(('.\databasee\')) is exactly the same as its input: '.\databasee\'. The unnecessary parentheses are confusing only.
To get all .jpg images in subfolders:
d = dir('.\databasee\**\*.jpg');
num = numel(d)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by