MATLAB: Problem with imageDatastore function

Computer Vision Toolboxdeep learningdigital image processingimage processing

Hello everyone,
I have a problem with imageDatastore. When I define this function: imds = imageDatastore(fullfile(rootFolder, categories), 'LabelSource', 'foldernames'); matlab says, Undefined function or variable 'imageDatastore'. I tried to find from which toolbox the function comes from, but it seems like that function it doesn't exist at all. I hope someone here will be able to solve my problem. Thanks in advance

Best Answer

Walter is right. imageDatastore function is new as of R2016a. You can create an ImageDatastore object using
myfolder = 'C:\myImages'
datastore(myfolder, 'Type', 'image')
You also cannot run that deep learning example using R2015b. You need R2016a for that. To create an ImageDatastore you don't need Computer Vision System Toolbox installed, just MATLAB is good enough.