Home>
I want to ask

A question about using a circle grid with a camera calibre.
For chess boards, squaressize is defined by the size of one side of a pattern, but
Where should I define for a circle grid?
Sorry for the rudimentary question, please answer.

static void calcChessboardCorners (Size boardSize, float squareSize, vector<Point3f>&corners, Pattern patternType = CHESSBOARD)
{
    corners.resize (0);
    switch (patternType)
    {
      case CHESSBOARD:
      case CIRCLES_GRID:
        for (int i = 0;i<boardSize.height;i ++)
            for (int j = 0;j<boardSize.width;j ++)
                corners.push_back (Point3f (float (j * squareSize),
                                          float (i * squareSize), 0));
        break;
      case ASYMMETRIC_CIRCLES_GRID:
        for (int i = 0;i<boardSize.height;i ++)
            for (int j = 0;j<boardSize.width;j ++)
                corners.push_back (Point3f (float ((2 * j + i% 2) * squareSize),
                                          float (i * squareSize), 0));
        break;