필터 지우기
필터 지우기

what is bwlabel function doing ?

조회 수: 3 (최근 30일)
Mahmoud Hassan
Mahmoud Hassan 2019년 2월 9일
답변: Image Analyst 2019년 2월 9일
i want to understand the logic of bwlabel function ....
L = bwlabel(BW,4) what is it doing ? and L = bwlabel(BW,8) ... i want someone to express for me ... i read about it but i didnt understand

답변 (1개)

Image Analyst
Image Analyst 2019년 2월 9일
It's giving a unique ID number to every connected blob. If you have two squares just touching at the corner, do you consider that to be just one blob, or two? If it's one blob, then use 8 connectivity. If it's two blobs then use 4 connectivity which says that the blobs need to touch on one of the 4 vertical or horizontal edges, not on one of the corners.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by