Skip to content
Snippets Groups Projects
Commit 0a754ce2 authored by calrama's avatar calrama
Browse files

Port to OpenCV 4.2.0

parent 2d85290b
No related branches found
No related tags found
No related merge requests found
...@@ -438,15 +438,15 @@ double CBlob::Mean( IplImage *image ) ...@@ -438,15 +438,15 @@ double CBlob::Mean( IplImage *image )
offset.y = -m_boundingBox.y; offset.y = -m_boundingBox.y;
// draw contours on mask // draw contours on mask
cvDrawContours( mask, m_externalContour.GetContourPoints(), CV_RGB(255,255,255), CV_RGB(255,255,255),0, CV_FILLED, 8, cvDrawContours( mask, m_externalContour.GetContourPoints(), cvScalar(CV_RGB(255,255,255)), cvScalar(CV_RGB(255,255,255)),0, CV_FILLED, 8,
offset ); cvPoint(offset) );
// draw internal contours // draw internal contours
t_contourList::iterator it = m_internalContours.begin(); t_contourList::iterator it = m_internalContours.begin();
while(it != m_internalContours.end() ) while(it != m_internalContours.end() )
{ {
cvDrawContours( mask, (*it).GetContourPoints(), CV_RGB(0,0,0), CV_RGB(0,0,0),0, CV_FILLED, 8, cvDrawContours( mask, (*it).GetContourPoints(), cvScalar(CV_RGB(0,0,0)), cvScalar(CV_RGB(0,0,0)),0, CV_FILLED, 8,
offset ); cvPoint(offset) );
it++; it++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment