Is there any way to extract objects after semantic segmentation?

M
Mona-Al-Kharraz · Jun 3, 2021 · 2K views
Question
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 PhD Expert
Answered Nov 20, 2025
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...
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!