Color based segment ? extract all color object ?
Mostrar comentarios más antiguos
Color based segment ? extract all color object ? 

3 comentarios
KALYAN ACHARJYA
el 6 de Feb. de 2021
How you define color here?
Selva Karna
el 6 de Feb. de 2021
Selva Karna
el 6 de Feb. de 2021
Respuesta aceptada
Más respuestas (1)
KALYAN ACHARJYA
el 6 de Feb. de 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 comentario
Selva Karna
el 6 de Feb. de 2021
Categorías
Más información sobre Image Processing and Computer Vision en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
