segmenting image help please

This is my code
Segout = imread('abc.jpg');
>> imshow(Segout);
>> BW=im2bw(Segout);
>> figure,imshow(BW)
>> dim=size(BW)

1 件のコメント

darova
darova 2020 年 3 月 24 日
Why did you remove your question? Can you restore?

サインインしてコメントする。

回答 (1 件)

darova
darova 2020 年 3 月 23 日

0 投票

I just found red color
I0 = imread('image.jpeg');
c1 = I0(:,:,1) > 160;
c2 = I0(:,:,2) < 60;
c3 = I0(:,:,3) < 60;
ix = c1 & c2 & c3;
I1 = I0 .* uint8(cat(3,ix,ix,ix));
imshow(I1)

1 件のコメント

darova
darova 2020 年 3 月 23 日
Can you highlight it? Where is it?

サインインしてコメントする。

質問済み:

2020 年 3 月 23 日

コメント済み:

2020 年 3 月 24 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by