Apply semanticseg to multiple images
4 次查看(过去 30 天)
显示 更早的评论
Hi, I am trying to perform semantic segmentation using Deep Learning, following the example in https://it.mathworks.com/help/vision/ug/semantic-segmentation-using-deep-learning.html.
I would like to use the network I trained to classify new images. However, I am able to perform semantic segmentation on a single images, but I want to process multiple images together and automatically label them with the network I trained.
C = semanticseg(I, net);
To this purpose, how could I apply the semanticseg function on multiple images of a folder?
Thank you to anyone who will reply to this question.
0 个评论
回答(2 个)
Birju Patel
2022-5-19
To apply semanticseg to a images from a folder, you can pass in an imageDatastore to the semanticseg function:
imds = imageDatastore(folder);
pxds = semanticseg(imds, net);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!