[OpenCV][C++] 영상 외곽선(contour) 추출 총정리(2) - cv::drawContours cvtColor


[OpenCV][C++] 영상 외곽선(contour) 추출 총정리(2) - cv::drawContours cvtColor

지난번에 영상의 윤곽선을 추출하는 findContours()에 대해 자세히 알아 봤습니다. https://m.blog.naver.com/dorergiverny/223077650900 [OpenCV][C++] 영상 외곽선(contour) 추출 총정리(1) - cv::findContours 이번에는 물체의 경계를 이루고 있는 외곽선(윤곽선)을 검출하는 방법에 대해 알아보겠습니다. 외곽선을 추... blog.naver.com 이번에는 findContours()로 찾은 윤곽선을 영상 위에 그리는 방법에 대해 알아보겠습니다. drawContours() drawContours()의 원형은 아래와 같습니다. src 윤곽선을 그릴 영상, gray, color 영상 가능 contours 윤곽선 정보, vector<vector<Point>> 타입 contourIdx 윤곽선 인덱스, -1일 경우 전체 윤곽선을 한번에 그림 color 윤곽선 색상 thickness 윤곽선 두께, FILLED 또는 -1일 ...


#contour #roi #검출 #그리기 #영상 #외곽선 #윤곽선 #이미지 #채우기 #추출 #retr_tree #retr_list #retr_external #drawcontours #findcontour #findcontours #hierarchy #maxlevel #opencv #polygon #random #retr_ccomp #컨투어

원문링크 : [OpenCV][C++] 영상 외곽선(contour) 추출 총정리(2) - cv::drawContours cvtColor