필터 지우기
필터 지우기

Removing connecting pixel from corner-touching objects.

조회 수: 1 (최근 30일)
Rainer
Rainer 2014년 5월 15일
답변: Image Analyst 2014년 5월 15일
I have a binary array that has thousands of irregularly shaped objects in it. Occasionally, the corners of two objects touch. How can remove that pixel so that this one object becomes 2 objects? I know i can erode all objects but that affects the area of the objects, which is important to me.
0 0 0 0 0 1 1 1 1 1 1
0 0 0 0 0 1 1 1 1 0 0
1 1 1 1 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0

답변 (1개)

Image Analyst
Image Analyst 2014년 5월 15일
If you use four connected processing, it won't be touching. Look for that in the input. Most of the functions (e.g. bwlabel) assume 8-connected but will let you specify.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by