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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ragunanth Venkatesh
el 12 de Abr. de 2016
Comentada: Ragunanth Venkatesh
el 12 de Mayo de 2016
% 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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Camera Calibration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!