Assigning different colors to same segmented object

2 Ansichten (letzte 30 Tage)
Adnan Khan
Adnan Khan am 9 Mai 2021
Kommentiert: Adnan Khan am 9 Mai 2021
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.

Akzeptierte Antwort

Image Analyst
Image Analyst am 9 Mai 2021
Try using findcircles().
Or you could try watershed()
To color each labeled blob, use label2rgb().
  1 Kommentar
Adnan Khan
Adnan Khan am 9 Mai 2021
Thank you so much for sharing the link to this awesome blogpost. It helped me alot.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by