From 0a754ce2272db969fa9e39cb922593cb27766aa1 Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner <mm@ucw.sh> Date: Thu, 12 Mar 2020 15:59:02 +0100 Subject: [PATCH] Port to OpenCV 4.2.0 --- .../TrackingAlgorithm/imageProcessor/cvblobs/blob.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Model/TrackingAlgorithm/imageProcessor/cvblobs/blob.cpp b/Src/Model/TrackingAlgorithm/imageProcessor/cvblobs/blob.cpp index b53402f..8842c5f 100644 --- a/Src/Model/TrackingAlgorithm/imageProcessor/cvblobs/blob.cpp +++ b/Src/Model/TrackingAlgorithm/imageProcessor/cvblobs/blob.cpp @@ -438,15 +438,15 @@ double CBlob::Mean( IplImage *image ) offset.y = -m_boundingBox.y; // draw contours on mask - cvDrawContours( mask, m_externalContour.GetContourPoints(), CV_RGB(255,255,255), CV_RGB(255,255,255),0, CV_FILLED, 8, - offset ); + cvDrawContours( mask, m_externalContour.GetContourPoints(), cvScalar(CV_RGB(255,255,255)), cvScalar(CV_RGB(255,255,255)),0, CV_FILLED, 8, + cvPoint(offset) ); // draw internal contours t_contourList::iterator it = m_internalContours.begin(); while(it != m_internalContours.end() ) { - cvDrawContours( mask, (*it).GetContourPoints(), CV_RGB(0,0,0), CV_RGB(0,0,0),0, CV_FILLED, 8, - offset ); + cvDrawContours( mask, (*it).GetContourPoints(), cvScalar(CV_RGB(0,0,0)), cvScalar(CV_RGB(0,0,0)),0, CV_FILLED, 8, + cvPoint(offset) ); it++; } -- GitLab