Lines Matching refs:corners

119     CvCBCorner *corners[4]; // Coordinates of quad corners  member
128 static int icvGenerateQuads( CvCBQuad **quads, CvCBCorner **corners,
148 int *all_count, CvCBQuad **all_quads, CvCBCorner **corners,
158 CvCBQuad **all_quads, int all_count, CvCBCorner **corners);
162 static int icvCheckBoardMonotony( CvPoint2D32f* corners, CvSize pattern_size );
218 CvCBCorner *corners = 0, **corner_group = 0; in cvFindChessboardCorners() local
287 …CV_CALL( quad_count = icvGenerateQuadsEx( &quads, &corners, storage, img, thresh_img, dilations, f… in cvFindChessboardCorners()
330 … CV_CALL( quad_count = icvGenerateQuads( &quads, &corners, storage, thresh_img, flags )); in cvFindChessboardCorners()
347 pt1 = quads[i].corners[k]->pt; in cvFindChessboardCorners()
348 pt2 = quads[i].corners[(k+1)%4]->pt; in cvFindChessboardCorners()
385 … count = icvOrderFoundConnectedQuads(count, quad_group, &quad_count, &quads, &corners, in cvFindChessboardCorners()
403 pt1 = quads[i].corners[k]->pt; in cvFindChessboardCorners()
404 pt2 = quads[i].corners[(k+1)%4]->pt; in cvFindChessboardCorners()
449 cvFree( &corners ); in cvFindChessboardCorners()
462 cvFree( &corners ); in cvFindChessboardCorners()
497 icvCheckBoardMonotony( CvPoint2D32f* corners, CvSize pattern_size ) in icvCheckBoardMonotony() argument
505 CvPoint2D32f a = k == 0 ? corners[i*pattern_size.width] : corners[i]; in icvCheckBoardMonotony()
506 CvPoint2D32f b = k == 0 ? corners[(i+1)*pattern_size.width-1] : in icvCheckBoardMonotony()
507 corners[(pattern_size.height-1)*pattern_size.width + i]; in icvCheckBoardMonotony()
513 CvPoint2D32f c = k == 0 ? corners[i*pattern_size.width + j] : in icvCheckBoardMonotony()
514 corners[j*pattern_size.width + i]; in icvCheckBoardMonotony()
540 int *all_count, CvCBQuad **all_quads, CvCBCorner **corners, in icvOrderFoundConnectedQuads() argument
614 icvOrderQuad(neighbor, q->corners[i], (i+2)%4); // set in order in icvOrderFoundConnectedQuads()
715 icvOrderQuad(neighbor, quads[i]->corners[j], (j+2)%4); in icvOrderFoundConnectedQuads()
733 int added = icvAddOuterQuad(quads[i],quads,quad_count,all_quads,*all_count,corners); in icvOrderFoundConnectedQuads()
780 CvCBQuad **all_quads, int all_count, CvCBCorner **corners ) in icvAddOuterQuad() argument
807 CvPoint2D32f pt = quad->corners[i]->pt; in icvAddOuterQuad()
809 float dx = pt.x - quad->corners[j]->pt.x; in icvAddOuterQuad()
810 float dy = pt.y - quad->corners[j]->pt.y; in icvAddOuterQuad()
813 corner = &(*corners)[all_count*4+k]; in icvAddOuterQuad()
814 pt = quad->corners[k]->pt; in icvAddOuterQuad()
817 q->corners[k] = corner; in icvAddOuterQuad()
822 q->corners[j] = quad->corners[i]; in icvAddOuterQuad()
836 q->corners[(j+1)%4] = qn->corners[(i+1)%4]; in icvAddOuterQuad()
991 if (quad->corners[tc]->pt.x == corner->pt.x && in icvOrderQuad()
992 quad->corners[tc]->pt.y == corner->pt.y) in icvOrderQuad()
1002 tempc = quad->corners[3]; in icvOrderQuad()
1006 quad->corners[i] = quad->corners[i-1]; in icvOrderQuad()
1009 quad->corners[0] = tempc; in icvOrderQuad()
1049 CvPoint2D32f pt = q->corners[j]->pt; in icvCleanFoundConnectedQuads()
1194 CvCBCorner** corners = 0; in icvCheckQuadGroup() local
1204 CV_CALL( corners = (CvCBCorner**)cvAlloc( quad_count*4*sizeof(corners[0]) )); in icvCheckQuadGroup()
1222 CvCBCorner *a = q->corners[j], *b = q->corners[(j+1)&3]; in icvCheckQuadGroup()
1231 corners[corner_count++] = a; in icvCheckQuadGroup()
1260 int n = corners[i]->count; in icvCheckQuadGroup()
1265 if( corners[i]->row == ROW1 ) in icvCheckQuadGroup()
1266 first = corners[i]; in icvCheckQuadGroup()
1267 else if( !first2 && corners[i]->row == ROW2 ) in icvCheckQuadGroup()
1268 first2 = corners[i]; in icvCheckQuadGroup()
1398 memcpy( corners, out_corners, corner_count*sizeof(corners[0]) ); in icvCheckQuadGroup()
1401 out_corners[i*width + j] = corners[j*height + i]; in icvCheckQuadGroup()
1429 if( result <= 0 && corners ) in icvCheckQuadGroup()
1433 out_corners[i] = corners[i]; in icvCheckQuadGroup()
1440 cvFree( &corners ); in icvCheckQuadGroup()
1478 pt = cur_quad->corners[i]->pt; in icvFindQuadNeighbors()
1491 dx = pt.x - quads[k].corners[j]->pt.x; in icvFindQuadNeighbors()
1492 dy = pt.y - quads[k].corners[j]->pt.y; in icvFindQuadNeighbors()
1522 closest_corner = closest_quad->corners[closest_corner_idx]; in icvFindQuadNeighbors()
1529 dx = closest_corner->pt.x - cur_quad->corners[j]->pt.x; in icvFindQuadNeighbors()
1530 dy = closest_corner->pt.y - cur_quad->corners[j]->pt.y; in icvFindQuadNeighbors()
1559 dx = closest_corner->pt.x - q->corners[j]->pt.x; in icvFindQuadNeighbors()
1560 dy = closest_corner->pt.y - q->corners[j]->pt.y; in icvFindQuadNeighbors()
1578 cur_quad->corners[i] = closest_corner; in icvFindQuadNeighbors()
1723 q->corners[i] = corner; in icvGenerateQuads()
1728 float dx = q->corners[i]->pt.x - q->corners[(i+1)&3]->pt.x; in icvGenerateQuads()
1729 float dy = q->corners[i]->pt.y - q->corners[(i+1)&3]->pt.y; in icvGenerateQuads()
1949 q->corners[i] = corner; in icvGenerateQuadsEx()
1954 float dx = q->corners[i]->pt.x - q->corners[(i+1)&3]->pt.x; in icvGenerateQuadsEx()
1955 float dy = q->corners[i]->pt.y - q->corners[(i+1)&3]->pt.y; in icvGenerateQuadsEx()
1981 CvPoint2D32f* corners, int count, int found ) in cvDrawChessboardCorners() argument
2033 pt.x = cvRound(corners[i].x*(1 << shift)); in cvDrawChessboardCorners()
2034 pt.y = cvRound(corners[i].y*(1 << shift)); in cvDrawChessboardCorners()
2071 pt.x = cvRound(corners[i].x*(1 << shift)); in cvDrawChessboardCorners()
2072 pt.y = cvRound(corners[i].y*(1 << shift)); in cvDrawChessboardCorners()