How to apply a function on all images in ImageDatastore ?
16 views (last 30 days)
Show older comments
Ardalan Jalal on 5 Feb 2021
Commented: Ardalan Jalal on 7 Feb 2021
I am using Imagedatastore function for classification problem but now I need to apply an function to all images in imageDatastore
Jeremy Hughes on 5 Feb 2021
Edited: Jeremy Hughes on 5 Feb 2021
I think this is what you want.
imds = imageDatastore(files,...)
tds = transform(imds,@(img)classify(net,img));
YPred = readall(tds);
More Answers (0)
Find more on Semantic Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!