how to create image data store? I do not have clarity regarding the arguments in ImageDataStore as studied from the website

조회 수: 1 (최근 30일)
imds = imageDatastore('C:\Users\MEBIN\Desktop\fundusmathworks\Database',...
'IncludeSubfolders',true,...
'LabelSource','test1.tif');
Error using imageDatastore
Expected input to match one of these values:

'none', 'foldernames'

The input, 'test1.tif', did not match any of the valid values.
getting error in using imageDatastore.
Can anyone help?
Also need dataset for retinal images of Alzhiemers disease.

답변 (1개)

Matt J
Matt J 2024년 3월 8일
편집: Matt J 2024년 3월 8일
Matlab does not understand (and neither do we) how a single "test1.tif" is supposed to specify labels for all of your images. The probable solution is to just omit it:
imds = imageDatastore('C:\Users\MEBIN\Desktop\fundusmathworks\Database',...
'IncludeSubfolders',true);

카테고리

Help CenterFile Exchange에서 Agriculture에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by