Number of spot in binary image
조회 수: 2(최근 30일)
표시 이전 댓글
how i can find the spot of binary imagr,
the result of binary image below must be = 4
how i can find it?????

댓글 수: 0
채택된 답변
Walter Roberson
2019년 6월 8일
bw = im2bw(imread('image.jpeg'));
[~, numspots] = bwlabel( imclearborder(~bw) );
추가 답변(0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!