필터 지우기
필터 지우기

Apply semanticseg to multiple images

조회 수: 2 (최근 30일)
VALERIA Croce
VALERIA Croce 2022년 5월 13일
편집: yanqi liu 2022년 5월 20일
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.

답변 (2개)

Birju Patel
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);

yanqi liu
yanqi liu 2022년 5월 20일
편집: yanqi liu 2022년 5월 20일
yes,sir,may be make images to image dataset or just to 4-D format,such as
>> size(I3)
ans =
720 960 3 2
>> C3 = semanticseg(I3, net);
>> size(C3)
ans =
720 960 2
then we can get seg result,such as

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by