Count centroids in an image

조회 수: 3 (최근 30일)
Adam Kelly
Adam Kelly 2019년 11월 9일
댓글: Adam Danz 2019년 11월 10일
Hey I have this binary image, with the centroids detetced but I need a way to count them so I get an output as number of characters is 7. I haven't been able to find a function or any way to do this. CountImage.jpg
  댓글 수: 5
Matt J
Matt J 2019년 11월 10일
but I need a way to count them
Why not just
numel(s)
Adam Danz
Adam Danz 2019년 11월 10일
@Adam Kelly, it looks like you've got several suggestions here. Let us know if you get stuck or if you're looking for something different.

댓글을 달려면 로그인하십시오.

답변 (1개)

Arash Rabbani
Arash Rabbani 2019년 11월 10일
Why not simply label the binary image? and 'Num' would be the number of characters.
[Label, Num]=bwlabel(Image)

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by