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!
