フィルターのクリア

Undefined function 'imageDatastore' for input arguments of type 'char'.

1 回表示 (過去 30 日間)
Hazel Sialongo
Hazel Sialongo 2016 年 9 月 28 日
回答済み: Walter Roberson 2016 年 9 月 28 日
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);

採用された回答

Walter Roberson
Walter Roberson 2016 年 9 月 28 日
imageDatastore objects were introduced in R2015b, but imageDatastore() did not become a callable function until R2016a.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by