Undefined function 'imageDatastore' for input arguments of type 'char'.
1 次查看(过去 30 天)
显示 更早的评论
This is the code:
setDir = fullfile(toolboxdir('vision'),'visiondata','imageSets');
imds = imageDatastore('C:\Users\JIARA\Documents\MainGUI\Eye Images\*.jpg');
[trainingSet,testSet] = splitEachLabel(imds,0.3,'randomize');
bag = bagOfFeatures(trainingSet);
categoryClassifier = trainImageCategoryClassifier(trainingSet,bag);
confMatrix = evaluate(categoryClassifier,testSet);
0 个评论
采纳的回答
Walter Roberson
2016-9-28
imageDatastore objects were introduced in R2015b, but imageDatastore() did not become a callable function until R2016a.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!