Undefined function 'imageDataStore' for input arguments of type 'cell'.

조회 수: 2 (최근 30일)
Hazel Sialongo
Hazel Sialongo 2016년 9월 28일
댓글: Walter Roberson 2018년 10월 16일
Code:
outputFolder = fullfile('C:\Users\JIARA\Documents\MainGUI');
rootFolder = fullfile(outputFolder, 'Eye_Images');
categories = {'Normal','Diabetes Detected'};
imds = imageDataStore(fullfile(rootFolder, categories), 'LabelSource', 'foldernames');
tbl = countEachLabel(imds);
[trainingSet,testSet] = splitEachLabel(imds,0.3,'randomize');
bag = bagOfFeatures(trainingSet);
categoryClassifier = trainImageCategoryClassifier(trainingSet,bag);
confMatrix = evaluate(categoryClassifier,testSet)

채택된 답변

mizuki
mizuki 2016년 10월 2일
imageDataStore is introduced in R2016a. If you are using R2015b or before, you cannot use it and you get the result like "undefined function." If you are using R2014b or later version, use datastore function instead with setting Type option as 'image.'
  댓글 수: 2
Thulasi Krishna
Thulasi Krishna 2018년 4월 3일
편집: Walter Roberson 2018년 10월 16일
imds = datastore(fullfile(rootFolder, categories), 'LabelSource', 'foldernames');
Undefined function 'datastore' for input arguments of type 'cell'.
What to do with this?
Walter Roberson
Walter Roberson 2018년 10월 16일
The class imageDataStore was introduced in R2015b, but the function required R2016a.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by