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

1 view (last 30 days)
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.

Answers (1)

Matt J
Matt J on 8 Mar 2024
Edited: Matt J on 8 Mar 2024
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);

Categories

Find more on Agriculture in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!