Color based segment ? extract all color object ?
Afficher commentaires plus anciens
Color based segment ? extract all color object ? 

3 commentaires
KALYAN ACHARJYA
le 6 Fév 2021
How you define color here?
Selva Karna
le 6 Fév 2021
Selva Karna
le 6 Fév 2021
Réponse acceptée
Plus de réponses (1)
KALYAN ACHARJYA
le 6 Fév 2021
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
1 commentaire
Selva Karna
le 6 Fév 2021
Catégories
En savoir plus sur Medical Physics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
