From 5d7511fef620902d4a90c782d9cc294162744939 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Reina Date: Mon, 30 Jan 2017 18:57:09 -0600 Subject: [PATCH] unrevert claibinit --- algorithms/src/claibinit_mod.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/algorithms/src/claibinit_mod.h b/algorithms/src/claibinit_mod.h index ea4c248..5763c71 100644 --- a/algorithms/src/claibinit_mod.h +++ b/algorithms/src/claibinit_mod.h @@ -397,7 +397,7 @@ int cvFindChessboardCorners( const void* arr, CvSize pattern_size, for (int k=0; k<4; k++) { CvPoint2D32f pt1, pt2; - CvScalar color = CV_RGB(30,255,30); + //CvScalar color = CV_RGB(30,255,30); pt1 = quads[i].corners[k]->pt; pt2 = quads[i].corners[(k+1)%4]->pt; pt2.x = (pt1.x + pt2.x)/2; @@ -452,7 +452,7 @@ int cvFindChessboardCorners( const void* arr, CvSize pattern_size, for (int k=0; k<4; k++) { CvPoint2D32f pt1, pt2; - CvScalar color = CV_RGB(30,255,30); + //CvScalar color = CV_RGB(30,255,30); if (quads[i].ordered) color = CV_RGB(255,30,30); pt1 = quads[i].corners[k]->pt; @@ -1848,24 +1848,24 @@ cvDrawChessboardCorners( CvArr* _image, CvSize pattern_size, if( !found ) { - CvScalar color(0,0,255); + /*CvScalar color(0,0,255); if( cn == 1 ) color = cvScalarAll(200); color.val[0] *= scale; color.val[1] *= scale; color.val[2] *= scale; - color.val[3] *= scale; + color.val[3] *= scale;*/ for( i = 0; i < count; i++ ) { - CvPoint pt; + /*CvPoint pt; pt.x = cvRound(corners[i].x*(1 << shift)); pt.y = cvRound(corners[i].y*(1 << shift)); cvLine( image, cvPoint( pt.x - r, pt.y - r ), cvPoint( pt.x + r, pt.y + r ), color, 1, line_type, shift ); cvLine( image, cvPoint( pt.x - r, pt.y + r), cvPoint( pt.x + r, pt.y - r), color, 1, line_type, shift ); - cvCircle( image, pt, r+(1<