2016-08-13 5 views
1

이 이진 이미지에서 각 줄을 추출하는 방법을 찾고 있습니다.이진 이미지에서 겹치는 개체 추출

저는 C++에서 opencv 라이브러리를 사용합니다.

방법은 내가 시도 :

Step 1: Thinning - resulted in lines with sharp curves when they shouldn't 
Step 2: follow the line's path. However, some part of the sample image resulted in 
     thinning where it created intersections that curve to wrong direction. 
Step 3: Erode - all other objects outside the objects skeleton/thinning path. 

나는이 문제를 해결하기위한 확인이 더 많은 강력한 방법입니다. 나를 안내 해줘.

감사합니다.

샘플 이미지 :

enter image description here

답변

0

당신은 거리 변환을 사용하려고 할 수 있습니다. 3 가지 버전 (L1, L2, C)을 선형 결합합니다. 그런 다음 위에 Gauss 필터를 적용하십시오. 마지막으로 thresholding을 수행합니다.

thin아 내기보다 효과적입니다.

+0

답변 해 주셔서 감사합니다. 나는 전체로서 이미지 처리에있어서 새로운 것이다. LInearly 조합은 무엇을 의미합니까? – DGMJ

+0

결과가 행렬 l1, l2, c에있는 경우, 결과는 'Mat result = (l1 + l2 + c)/3'입니다. – ypnos