How to get the standard errors in the computed camera parameters via calibration. When i try using the displayErr​ors(estima​tionErrors​, cameraParams) it gives me a error. Can anyone pls help me.

1 view (last 30 days)
% Define images to process
imageFileNames = {'D:\PhD\test\calb05.tif',...
'D:\PhD\test\calb08.tif',...
'D:\PhD\test\calb09.tif',...
'D:\PhD\test\calb11.tif',...
'D:\PhD\test\calb13.tif',...
'D:\PhD\test\calb16.tif',...
'D:\PhD\test\calb18.tif',...
'D:\PhD\test\calb19.tif',...
};
% Detect checkerboards in images
[imagePoints, boardSize, imagesUsed] = detectCheckerboardPoints(imageFileNames);
imageFileNames = imageFileNames(imagesUsed);
% Generate world coordinates of the corners of the squares
squareSize = 2.524260e+00; % in units of 'mm'
worldPoints = generateCheckerboardPoints(boardSize, squareSize);
% Calibrate the camera
[cameraParams, estimationErrors] = estimateCameraParameters(imagePoints, worldPoints, ...
'EstimateSkew', true, 'EstimateTangentialDistortion', true, ...
'NumRadialDistortionCoefficients', 2, 'WorldUnits', 'mm');
% View reprojection errors
h1=figure; showReprojectionErrors(cameraParams, 'BarGraph');
% Visualize pattern locations
h2=figure; showExtrinsics(cameraParams, 'CameraCentric');
% For example, you can use the calibration data to remove effects of lens distortion.
originalImage = imread(imageFileNames{1});
undistortedImage = undistortImage(originalImage, cameraParams);
displayErrors(estimationErrors, cameraParams)
  3 Comments
Ragunanth Venkatesh
Ragunanth Venkatesh on 12 May 2016
@Dima -- It would be great if you could look into this question of mine "http://www.mathworks.com/matlabcentral/answers/283866-camera-calibration-2d-plane-based"

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!