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!