extract image from segmentation and overlay it
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
Sanjana
2024년 2월 11일
편집: Walter Roberson
2024년 2월 19일
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
Image Analyst
2024년 2월 19일
Save I and C to a .mat file and attach the file here with the paperclip icon.
save('Sanjana.mat', 'I', 'C');
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
