Number of spot in binary image

1 次查看(过去 30 天)
how i can find the spot of binary imagr,
the result of binary image below must be = 4
how i can find it?????

采纳的回答

Walter Roberson
Walter Roberson 2019-6-8
bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );
  1 个评论
mohammed alany
mohammed alany 2019-6-8
Many thanks dear Walter Roberson,
your answer is very fast and helpful

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by