extract image from segmentation and overlay it
Ältere Kommentare anzeigen
i have to extract the person from the image(mask_crop.png) and overlay it to the other pgm(sample.zip) image. i have already tried thresholding based extraction and intensity based overlay. The results were not that good. Please find the two images attached.
Akzeptierte Antwort
Weitere Antworten (1)
Sanjana
am 11 Feb. 2024
Bearbeitet: Walter Roberson
am 19 Feb. 2024
Hi I have totally opposite doubt, Actually Im working with this code which overlays the sematic segmented image over the original image. But i want to extract only the sematic image. How can i do so?
C = semanticseg(I,net);
cmap = camvidColorMap;
B = labeloverlay(I,C,'Colormap',cmap,'Transparency',0.4);
figure
imshow(B)
pixelLabelColorbar(cmap, classes);
1 Kommentar
Image Analyst
am 19 Feb. 2024
Save I and C to a .mat file and attach the file here with the paperclip icon.
save('Sanjana.mat', 'I', 'C');
Kategorien
Mehr zu Image Segmentation finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
