Number of spot in binary image

조회 수: 3(최근 30일)
mohammed alany
mohammed alany 2019년 6월 8일
댓글: mohammed alany 2019년 6월 8일
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개)

범주

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by