Lines Matching refs:quad_count
163 static void icvFindQuadNeighbors( CvCBQuad *quads, int quad_count );
165 static int icvFindConnectedQuads( CvCBQuad *quads, int quad_count,
172 static int icvCleanFoundConnectedQuads( int quad_count,
175 static int icvOrderFoundConnectedQuads( int quad_count, CvCBQuad **quads,
187 static int icvAddOuterQuad(CvCBQuad *quad, CvCBQuad **quads, int quad_count,
259 int quad_count = 0, group_idx = 0, dilations = 0; in cvFindChessboardCorners() local
372 quad_count = icvGenerateQuads( &quads, &corners, storage, thresh_img, flags ); in cvFindChessboardCorners()
374 PRINTF("Quad count: %d/%d\n", quad_count, expected_corners_num); in cvFindChessboardCorners()
382 for(int i = 0; i < quad_count; i++ ) in cvFindChessboardCorners()
403 if( quad_count <= 0 ) in cvFindChessboardCorners()
407 icvFindQuadNeighbors( quads, quad_count ); in cvFindChessboardCorners()
412 quad_group = (CvCBQuad**)cvAlloc( sizeof(quad_group[0]) * (quad_count+quad_count / 2)); in cvFindChessboardCorners()
413 … corner_group = (CvCBCorner**)cvAlloc( sizeof(corner_group[0]) * (quad_count+quad_count / 2)*4 ); in cvFindChessboardCorners()
418 count = icvFindConnectedQuads( quads, quad_count, quad_group, group_idx, storage ); in cvFindChessboardCorners()
427 … count = icvOrderFoundConnectedQuads(count, quad_group, &quad_count, &quads, &corners, in cvFindChessboardCorners()
436 for(int i = 0; i < quad_count; i++ ) in cvFindChessboardCorners()
625 icvOrderFoundConnectedQuads( int quad_count, CvCBQuad **quads, in icvOrderFoundConnectedQuads() argument
634 for (int i=0; i<quad_count; i++) in icvOrderFoundConnectedQuads()
736 quad_count = icvTrimCol(quads,quad_count,col_min,-1); in icvOrderFoundConnectedQuads()
741 quad_count = icvTrimCol(quads,quad_count,col_max,+1); in icvOrderFoundConnectedQuads()
752 quad_count = icvTrimRow(quads,quad_count,row_min,-1); in icvOrderFoundConnectedQuads()
757 quad_count = icvTrimRow(quads,quad_count,row_max,+1); in icvOrderFoundConnectedQuads()
766 for (int i=0; i<quad_count; i++) in icvOrderFoundConnectedQuads()
807 for (int i=0; i<quad_count; i++) in icvOrderFoundConnectedQuads()
811 int added = icvAddOuterQuad(quads[i],quads,quad_count,all_quads,*all_count,corners); in icvOrderFoundConnectedQuads()
813 quad_count += added; in icvOrderFoundConnectedQuads()
823 int rcount = quad_count; in icvOrderFoundConnectedQuads()
824 for (int i=quad_count-1; i>=0; i--) // eliminate any quad not connected to in icvOrderFoundConnectedQuads()
857 icvAddOuterQuad( CvCBQuad *quad, CvCBQuad **quads, int quad_count, in icvAddOuterQuad() argument
871 quads[quad_count] = q; in icvAddOuterQuad()
872 quad_count++; in icvAddOuterQuad()
1097 icvCleanFoundConnectedQuads( int quad_count, CvCBQuad **quad_group, CvSize pattern_size ) in icvCleanFoundConnectedQuads() argument
1106 if( quad_count <= count ) in icvCleanFoundConnectedQuads()
1107 return quad_count; in icvCleanFoundConnectedQuads()
1110 cv::AutoBuffer<CvPoint2D32f> centers( quad_count ); in icvCleanFoundConnectedQuads()
1113 for( i = 0; i < quad_count; i++ ) in icvCleanFoundConnectedQuads()
1132 center.x /= quad_count; in icvCleanFoundConnectedQuads()
1133 center.y /= quad_count; in icvCleanFoundConnectedQuads()
1142 for( ; quad_count > count; quad_count-- ) in icvCleanFoundConnectedQuads()
1148 for( skip = 0; skip < quad_count; skip++ ) in icvCleanFoundConnectedQuads()
1153 CvMat pointMat = cvMat(1, quad_count, CV_32FC2, centers); in icvCleanFoundConnectedQuads()
1170 for( i = 0; i < quad_count; i++ ) in icvCleanFoundConnectedQuads()
1192 quad_count--; in icvCleanFoundConnectedQuads()
1193 quad_group[min_box_area_index] = quad_group[quad_count]; in icvCleanFoundConnectedQuads()
1194 centers[min_box_area_index] = centers[quad_count]; in icvCleanFoundConnectedQuads()
1197 return quad_count; in icvCleanFoundConnectedQuads()
1203 icvFindConnectedQuads( CvCBQuad *quad, int quad_count, CvCBQuad **out_group, in icvFindConnectedQuads() argument
1211 for( i = 0; i < quad_count; i++ ) in icvFindConnectedQuads()
1218 if( i < quad_count ) in icvFindConnectedQuads()
1250 icvCheckQuadGroup( CvCBQuad **quad_group, int quad_count, in icvCheckQuadGroup() argument
1258 std::vector<CvCBCorner*> corners(quad_count*4); in icvCheckQuadGroup()
1267 for( i = 0; i < quad_count; i++ ) in icvCheckQuadGroup()
1507 static void icvFindQuadNeighbors( CvCBQuad *quads, int quad_count ) in icvFindQuadNeighbors() argument
1514 for( idx = 0; idx < quad_count; idx++ ) in icvFindQuadNeighbors()
1538 for( k = 0; k < quad_count; k++ ) in icvFindQuadNeighbors()
1607 for( k = 0; k < quad_count; k++ ) in icvFindQuadNeighbors()
1626 if( k < quad_count ) in icvFindQuadNeighbors()
1654 int quad_count = 0; in icvGenerateQuads() local
1763 CvCBQuad* q = &(*out_quads)[quad_count]; in icvGenerateQuads()
1775 CvCBCorner* corner = &(*out_corners)[quad_count*4 + i]; in icvGenerateQuads()
1790 quad_count++; in icvGenerateQuads()
1793 return quad_count; in icvGenerateQuads()