MATLAB Answers

How to Segment a object's based on color pixel value ? and how to labelling it ?

23 views (last 30 days)
Selva Karna
Selva Karna on 17 Feb 2021
Commented: Image Analyst on 17 Feb 2021
How to Segment a object's based on color ?and how to labelling it ? Image dynamic ?

Answers (1)

Image Analyst
Image Analyst on 17 Feb 2021
You can use the Color Thresholder on the Apps tab of the tool ribbon. Tell it to export the code. Then you can pass the mask into bwlabel() or bwconncomp().
For the image you've shown, it looks like it was already labeled and passed in to label2rgb() function to produce a pseudocolored image. If not, then tell me how you obtained that image and why you don't have the labeled image for it.
  2 Comments
Image Analyst
Image Analyst on 17 Feb 2021
See my File Exchange where I have several demos where I use color segmentation without the color thresholder.
And will you respond to my last paragraph?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!