How to clear all the connected pixel in order to separate every objects

 Accepted Answer

use bwconncomp
Here is more info on that:

2 Comments

But this function only provides the information, may I know howto use it to separate the objects?
Once you run the bwconncomp all the information about each object is there.
If you want to get more information you can pass the results to regionprops
perhaps this would be also helpful:

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!