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.

2 次查看(过去 30 天)
% 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 个评论
Ragunanth Venkatesh
@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"

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Camera Calibration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by