Clear Filters
Clear Filters

how to differentiate object in 3d image

2 views (last 30 days)
there is 3d image with random objects (stack of 2d images). How is it possible to identify different objects with different color and assign different indices for isolated objects with different colors in 3d
  5 Comments
B
B on 24 Feb 2013
I have a 3d array of 0 and 1s, I want to identify different objects (1s).
Shaun VanWeelden
Shaun VanWeelden on 24 Feb 2013
See Image Analysts answer below, its exactly what you want :)

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 24 Feb 2013
Edited: Image Analyst on 24 Feb 2013
Call bwlabeln() or bwconncomp() to do connected components labeling. Then call label2rgb().

More Answers (0)

Community Treasure Hunt

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

Start Hunting!