Counting objects in binary image

4 views (last 30 days)
Anonymous
Anonymous on 11 May 2018
Answered: Image Analyst on 12 May 2018
How can I count the number of objects in a binary image without using built in functions? I know that regionprops does that, but I am not allowed to use built in functions.
  1 Comment
KSSV
KSSV on 12 May 2018
Can you attach your image, so that we can help you.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 12 May 2018
You can probably find connected components labeling pseudocode on the internet somewhere. Of course, if you do find that, could it be considered a "built-in function" that you're not allowed to use since someone else wrote it?

Community Treasure Hunt

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

Start Hunting!