How to get the standard errors in the computed camera parameters via calibration. When i try using the displayErrors(estimationErrors, cameraParams) it gives me a error. Can anyone pls help me.
1 view (last 30 days)
Show older comments
% 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
Answers (0)
See Also
Categories
Find more on Camera Calibration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!