Combine Image Datastore - Error using preview
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I am trying to combine three types of image datastores - raw image datastore, augmented image datastore and denoising image datastore.
I have used the combine() as below:
----------
imdsTrainCombined = combine(augimdsTrain,dndsimdsTrain, imdsTrain);
minibatchCom = preview(imdsTrainCombined);
montage(minibatchCom.input)
----------
However, when i try to preview the contents of the combined store, I get the following error:
----------
Error using matlab.io.datastore.CombinedDatastore/read (line 109)
All tables in the bracketed expression must have the same number of rows.
Error in matlab.io.Datastore/preview (line 273)
data = read(copyds);
Error in CVCW_TrainModels (line 64)
minibatchCom = preview(imdsTrainCombined);
----------
Each datastore has 1700 grayscale images with size 224x224
Could anyone pls help understand what is going wrong here?
0 件のコメント
回答 (1 件)
Sai Bhargav Avula
2020 年 5 月 12 日
Hi,
I think the error is because of different sizes of the datastore. All tables being horizontally concatenated must have the same number of rows. This might be happening because of the augumented datastore that was used.
A workaround is to directly read the data from the combinedDatastore and use montage over that accordingly.
Hope this helps!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!