필터 지우기
필터 지우기

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 (최근 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
Ragunanth Venkatesh 2016년 5월 12일
@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