Is there any way to extract objects after semantic segmentation?

Illustration
Mona-Al-Kharraz - 2021-06-03T12:09:33+00:00
Question: Is there any way to extract objects after semantic segmentation?

this page: https://www.mathworks.com/help/vision/examples/semantic-segmentation-using-deep-learning.html showing example of semantic segmentation. Is there any way to extract (seprate) each object in a different image file?  

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Use ismember() to to extract the class you want from the labeled image, then process as normal:
 
 
thisClass = ismember(labeledImage, classNumberYouWant); % Get a binary image of this class ONLY
props = regionprops(thisClass, 'all'); % or whatever...


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!