FUNCTION REFERENCE

generateCheckerboardPoints

World coordinates of the inner corners of a checkerboard calibration pattern.

World coordinates of the inner corners of a checkerboard calibration pattern.

Syntax

worldPoints = generateCheckerboardPoints(boardSize, squareSize)

boardSize is [rows cols] in squares (each at least 2) and squareSize the side of one square in world units. The result is M-by-2 [x y] with M = (rows-1)*(cols-1); [0 0] is the lower-right corner of the top-left square, x grows along a row of the board and y down a column. Points run down the first column of corners first (y varies fastest), then the next column.

Example

generateCheckerboardPoints([3 4], 10)   % [0 0; 0 10; 10 0; 10 10; 20 0; 20 10]

Example

size(generateCheckerboardPoints([5 7], 25))   % [24 2]

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.