Augmented Image Datastore doesn't accept Image Datastore

I have been using imageDatastore for training networks. All works fine.
Next, I wanted to create augmentedImageDatastore.
The documentation explains that imageDatastore can be used. https://uk.mathworks.com/help/nnet/ref/augmentedimagedatastore.html
however when try to do it, I receive this error
Undefined function 'augmentedImageDatastore' for input arguments of type 'matlab.io.datastore.ImageDatastore'
% all my images are 50x50x3
imageSize = [50 50 3];
augimds = augmentedImageDatastore(imageSize,imds);
I think this maybe something with the ReadFcn but it is default: @readDatastoreImage Is this possible to use imageDatastore, how if yes? I am using Matlab 2017b Thanks

 採用された回答

dhammo2
dhammo2 2018 年 3 月 20 日

1 投票

I think that is only possible in 2018a as I have no problem in the 2018 version but it does not work in 2017b. You should be able to use the following function instead (which is to be removed in future versions);
augimds = augmentedImageSource(imageSize,imds);
https://uk.mathworks.com/help/nnet/ref/augmentedimagesource.html

2 件のコメント

Greg
Greg 2018 年 3 月 21 日
thanks, that was it.
Dnon Dnon
Dnon Dnon 2018 年 3 月 26 日
Thanks

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 3 月 18 日

0 投票

You tagged with Computer Vision product but it is part of the Neural Network product.

4 件のコメント

Greg
Greg 2018 年 3 月 18 日
Hi, Thanks. The tag has been added automatically I guess, I just typed Matlab. Anyway, I cannot change the tagging and not sure how i can use this answer. If you know the real answer, please can you share? Thanks
Image Analyst
Image Analyst 2018 年 3 月 18 日
編集済み: Image Analyst 2018 年 3 月 18 日
imageDatastore() is in the Computer Vision System Toolbox. Maybe it's included in both toolboxes. I'm adding the Deep Learning toolbox to the Product List. The Neural Network toolbox is gone from the list right now. It was gone before and replaced by Deep Learning, but then they put it back, but now it's gone again replaced by the Deep Learning Toolbox again. I think there is some kind of gradual, on-again-off-again attempt at the Mathworks to rename the Neural Network Toolbox as "Deep Learning Toolbox".
Walter Roberson
Walter Roberson 2018 年 3 月 20 日
I suspect you do not have the Neural Network Toolbox installed.
Greg
Greg 2018 年 3 月 21 日
編集済み: Greg 2018 年 3 月 21 日
hi Walter, I have had all toolboxes including neural nets and have been using it. This was the problem of 2017 version. thanks anyway for kindly replying Greg

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2018 年 3 月 18 日

コメント済み:

2018 年 3 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by