Undefined function 'imageDataStore' for input arguments of type 'cell'.
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Hazel Sialongo
 le 28 Sep 2016
  
    
    
    
    
    Commenté : Walter Roberson
      
      
 le 16 Oct 2018
            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)
0 commentaires
Réponse acceptée
  mizuki
    
 le 2 Oct 2016
        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 commentaires
  Thulasi Krishna
 le 3 Avr 2018
				
      Modifié(e) : Walter Roberson
      
      
 le 16 Oct 2018
  
			imds = datastore(fullfile(rootFolder, categories), 'LabelSource', 'foldernames');
Undefined function 'datastore' for input arguments of type 'cell'.
What to do with this?
  Walter Roberson
      
      
 le 16 Oct 2018
				The class imageDataStore was introduced in R2015b, but the function required R2016a.
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



