Generate checkerboard corner locations
Generate the checkerboard, and obtain world coordinates.
I = checkerboard; squareSize = 10; worldPoints = generateCheckerboardPoints([8 8], squareSize);
Offset the points, placing the first point at the lower-right corner of the first square.
imshow(insertMarker(I, worldPoints + squareSize));
boardSize— Generated checkerboard dimensions
Generated checkerboard dimensions, specified as a 2-element [height, width] vector. You express the dimensions of the checkerboard in number of squares.
squareSize— Generated checkerboard square side length
Checkerboard square side length, specified as a scalar in world units. You express world units as a measurement, such as millimeters or inches.
worldPoints— Generated checkerboard corner coordinates
Generated checkerboard corner coordinates, returned as an M-by-2
matrix of M number of [x y]
coordinates. The coordinates represent the corners of the squares
on the checkerboard. The point [0,0] corresponds to the lower-right
corner of the top-left square of the board. The number of points, M,
that the function returns are based on the number of squares on the
checkerboard. This value is set with the
|M = (|