Problem with imageDatastore function

13 次查看(过去 30 天)
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
  1 个评论
Talbi anis
Talbi anis 2020-5-6
编辑:Talbi anis 2020-5-6
Hi everyone,
I'm using Matlab R2013a or Matlab R2015a, is there alternative to create an ImageDatastore object
Thank you for you help

请先登录,再进行评论。

采纳的回答

Anandan Rangasamy
Anandan Rangasamy 2016-8-31
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.
  2 个评论
SATYAM KUMAR CHOURASIYA 16MCA1038
computer vision is installed in matlab R2018a but still facing --this issue
Undefined function or variable 'imds'.
Image Analyst
Image Analyst 2018-4-1
SATYAM, no one's code here even mentions imds. The link at the top just shows a page with links to a bunch of examples. We don't know which one you ran. Please attach your code and images or videos so we can help you.

请先登录,再进行评论。

更多回答(3 个)

Walter Roberson
Walter Roberson 2016-5-21
imageDatastore requires the Computer Vision Toolbox from R2015b or later.
  4 个评论
Borasy Kong
Borasy Kong 2017-11-28
Man, I should've read these follow up comments before wasting my time installing the R2015b to get this error again.
Mehreen Khan
Mehreen Khan 2019-1-21
Try using datastore instead of imageDatastore. It worked or me on R2015b
imds = datastore(fullfile())

请先登录,再进行评论。


Mehreen Khan
Mehreen Khan 2019-1-21
Try using datastore instead of imageDatastore. It worked or me on R2015b
imds = datastore(fullfile());

Saher77
Saher77 2019-4-10
Hi everyone, Is there alternative to ImageDataStore in Matlab 2012. Any help appreciated
  1 个评论
Walter Roberson
Walter Roberson 2020-4-13
No, none of the datastore objects existed in 2012. None of the Deep Learning functions existed in 2012 either -- just the Neural Network functions that did not use datastores. The File Exchange had some contributions related to learning algorithms that did not use datastore objects though.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Computer Vision Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by