MATLAB Answers

Assigning different colors to same segmented object

조회 수: 1(최근 30일)
Adnan Khan
Adnan Khan 2021년 5월 9일
댓글: Adnan Khan 2021년 5월 9일
I have a segmentation problem, to segment plant from given image. Below is the output, so far what I have done.
I used color threesholding app to do this, now what I really want to do is to achieve the following output. That is to assign different colors to each leaf. How can I do this? Any help will be much appreciated.

채택된 답변

Image Analyst
Image Analyst 2021년 5월 9일
Try using findcircles().
Or you could try watershed()
To color each labeled blob, use label2rgb().
  댓글 수: 1
Adnan Khan
Adnan Khan 2021년 5월 9일
Thank you so much for sharing the link to this awesome blogpost. It helped me alot.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by