[OpenCV][C++] 영상 모양 매칭 matchShapes - 모멘트 Hu moment - 물체 모양 인식 shape matching polylines


[OpenCV][C++] 영상 모양 매칭 matchShapes - 모멘트 Hu moment - 물체 모양 인식 shape matching  polylines

지난 시간에 convex hull 에 대해 알아봤습니다. https://m.blog.naver.com/dorergiverny/223155023979 [C++] Convex Hull 볼록 껍질 알고리즘 구현 총정리 - concave ccw 컨벡스헐 점들의 최외곽 컨투어 찾기 quickhull convexHull 지난번에는 허프 변환에 대해 C++로 구현해보고 구동 원리를 알아봤습니다. https://m.blog.naver.com/dor... blog.naver.com 이번에는 shape 만 보고 매칭을 할 수 있는 함수에 대해 알아보겠습니다. contour1 입력 reference contour contour2 매칭할 contour method CONTOURS_MATCH_I1, I2, I3가 있음 parameter 사용되지 않는다. 반환값 매칭 값, 0에 가까울수록 매칭이 잘된 것임 matchShapes() 함수는 Hu 의 이동, 스케일, 회전에 불변인 모멘트를 사용하여 contour...


#approxPolyDP #peucker #polylines #reference #shape #간소화 #기준영상 #다각형 #매칭 #모양 #물체 #영상 #인식 #정합 #opencv #object #contour #CONTOUR_MATCH_I1 #convex #cvtColor #douglas #drawContours #findContours #hull #humoment #image #matching #matchShapes #moment #컨투어

원문링크 : [OpenCV][C++] 영상 모양 매칭 matchShapes - 모멘트 Hu moment - 물체 모양 인식 shape matching polylines