www.gusucode.com > vision 源码程序 matlab案例代码 > vision/Generate8by8CheckerboardExample.m

    %% Generate and Plot Corners of an 8-by-8 Checkerboard

% Copyright 2015 The MathWorks, Inc.


%% 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));