www.gusucode.com > vision 源码程序 matlab案例代码 > vision/EstimateAndDisplayCameraCalibrationStandardErrorsExample.m
%% Estimate and Display Camera Calibration Standard Errors %% % Create a cell array of file names of calibration images. for i = 1:10 imageFileName = sprintf('image%02d.jpg',i); imageFileNames{i} = fullfile(matlabroot,'toolbox','vision',... 'visiondata','calibration','fishEye',imageFileName); end %% % Detect the calibration pattern. [imagePoints,boardSize] = detectCheckerboardPoints(imageFileNames); %% % Generate the world coordinates of the corners of the squares. squareSize = 29; worldPoints = generateCheckerboardPoints(boardSize,squareSize); %% % Calibrate the camera. [params, ~, errors] = estimateCameraParameters(imagePoints,worldPoints); %% % Display the standard errors. displayErrors(errors,params);