Color based segment ? extract all color object ?
이전 댓글 표시
Color based segment ? extract all color object ? 

댓글 수: 3
KALYAN ACHARJYA
2021년 2월 6일
How you define color here?
Selva Karna
2021년 2월 6일
Selva Karna
2021년 2월 6일
채택된 답변
추가 답변 (1개)
KALYAN ACHARJYA
2021년 2월 6일
As the color is always subjective. Considering the simmilar images (image modalities), you may get the respective color models easily in YCBCR color model. Here I have shown the code (hard thresholding) for red object only, hope you can replicate the same for others coloers objects
rgb_data=imread('color_test.png');
temp=rgb_data;
ycbcr_data=rgb2ycbcr(rgb_data);
% Red Object
mask_red=ycbcr_data(:,:,3)>140 & ycbcr_data(:,:,2)<130;
mask_red=cat(3,mask_red,mask_red,mask_red);
red_object=temp.*uint8(mask_red);
imshow(red_object);

Otherwise, you may have look for Semantic image segmentation using deep learning
카테고리
도움말 센터 및 File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
