Number of spot in binary image

조회 수: 1 (최근 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개)

카테고리

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