MATLAB 도움말 센터
ImageDatastore 레이블의 파일 개수 계산
T = countEachLabel(imds)
T = countEachLabel(imds)는 imds에 포함된 레이블을 보여주는 요약 테이블과 각 레이블에 연결된 파일의 개수를 반환합니다.
T
imds
예제
모두 축소
ImageDatastore 객체를 만들고 이 객체가 포함되는 폴더에 따라 각 이미지의 레이블을 지정합니다.
ImageDatastore
imds = imageDatastore(fullfile(matlabroot, 'toolbox', 'matlab', {'demos','imagesci'}),... 'LabelSource', 'foldernames', 'FileExtensions', {'.jpg', '.png', '.tif'})
imds = ImageDatastore with properties: Files: { ' ...\matlab\toolbox\matlab\demos\cloudCombined.jpg'; ' ...\matlab\toolbox\matlab\demos\example.tif'; ' ...\matlab\toolbox\matlab\demos\landOcean.jpg' ... and 5 more } Labels: [demos; demos; demos ... and 5 more categorical] ReadFcn: @readDatastoreImage
각 레이블에 대한 파일 개수를 나열합니다.
T = Label Count ________ _____ demos 6 imagesci 2
입력 데이터저장소로, ImageDatastore 객체로 지정됩니다. 이미지 데이터에서 ImageDatastore를 생성하려면 imageDatastore 함수를 사용하십시오.
imageDatastore
레이블 개수를 보여주는 테이블로, imds에 포함된 각 레이블의 이름과 각 레이블에 연결된 파일의 개수를 포함하는 2열 테이블로 반환됩니다.
데이터형: table
table
모두 확장
backgroundPool
ThreadPool
이 함수는 스레드 기반 환경을 완전히 지원합니다. 자세한 내용은 스레드 기반 환경에서 MATLAB 함수 실행하기 항목을 참조하십시오.
R2016a에 개발됨
ImageDatastore | splitEachLabel | datastore
splitEachLabel
datastore
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의