extract image from segmentation and overlay it
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
prashant singh
le 7 Juil 2017
Commenté : Image Analyst
le 19 Fév 2024
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.
0 commentaires
Réponse acceptée
Image Analyst
le 7 Juil 2017
4 commentaires
Aisha
le 6 Oct 2017
Modifié(e) : Image Analyst
le 6 Oct 2017
I have the same issue. Here is the sample image, which we want as result:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/185773/image.png)
I have a binary prediction map, which I want to overlay on original image with transparency to see how good the segmentation results are. I have looked into alpha property and also tried imoverlay function. The alpha property method does not work, and imoverlay() overlay maps the binary image as a solid color, thus hiding the original image at pixels positions where the binary map is 1.
Image Analyst
le 6 Oct 2017
Please post your binary image and your original RGB image, preferably as a new question with you as the original poster. The alpha method should work. Not sure what you did but if you post your images, we'll get it working.
Plus de réponses (1)
Sanjana
le 11 Fév 2024
Modifié(e) : Walter Roberson
le 19 Fév 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 commentaire
Image Analyst
le 19 Fév 2024
Save I and C to a .mat file and attach the file here with the paperclip icon.
save('Sanjana.mat', 'I', 'C');
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!