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