Connected Components
그냥 엣지를 찾고 그안을 채우는 정도가 아니라 각각의 객체를 분리해내고 인식하는 것이다.
connected component 를 사용한 object detection
Connected_components_example_1.png
이런식으로 원래 전경이 엣지만 나오거나 하는 경우
Connected_components_example_2.png
이런식으로 뚜렷하게 외곽선을 찾고 분리가 된다.
Connected_components_example_3.png
즉 그냥 엣지를 찾고 그안을 채우는 정도가 아니라 각각의 객체를 분리해낸다.
OpenCV API는 다음을 사용하면 된다:
CVAPI(CvSeq*) cvSegmentFGMask( CvArr *fgmask, int poly1Hull0 CV_DEFAULT(1),
float perimScale CV_DEFAULT(4.f),
CvMemStorage* storage CV_DEFAULT(0),
CvPoint offset CV_DEFAULT(cvPoint(0,0)));
See also
Favorite site
- OpenCV , find connected component 1
- QUICK AND EASY CONNECTED COMPONENT (BLOB) USING OPENCV
- OpenCV cv::connectedComponents method reference
- openCV 라벨링 예제 (connectedComponentsWithStats)
- OpenCV #7-4 Example (컴포넌트의 외곽선 추출)
References
-
OpenCV_-_find_connected_component.pdf ↩