This is a camera calibration toolbox. It's partly based on Bouguet's toolbox and Zhang's camera calibration paper, but with more functionality:
Setup is based on an input configuration file which allows for easy tweaking and modification of algorithms and allows for greater reproducibility. If you save the images, configuration file, and script, the calibration will be repeatable.
Includes fiducial marker recognition which makes the calibration fully automatic.
The distortion function is input as a symbolic function (via configuration file) and is therefore very easily modifiable. Two distortion functions are provided already ("heikkila97" and "wang08"); this toolbox uses symbolic differentiation to compute the updated jacobians/hessians/gradients automatically.
Supports multi-camera calibration.
Implements both "distortion refinement" and "frontal refinement" techniques.
Supports multiple calibration board targets (checkers, circles, etc...) and correctly accounts for "center of ellipse" vs "projected center of circle" for circular targets depending on the type of calibration (i.e. "frontal refinement" or "distortion refinement").
Supports custom calibration board geometries by overriding an abstract calibration board geometry class.
Supports (optional) covariance optimization (i.e. generalized least squares) based on uncertainties computed during target localization.
Supports calibration board going partially "out of frame" which improves robustness and allows for bigger calibration boards to be used.
Code is organized, documented, and utilizes object oriented principles for code reuse.
The targets are checkers and the target optimization is a cool "edges" refinement algorithm from Mallon07. The calibration board geometry class used is "csgrid_cfp" which is a centered square grid with centered "four point" fiducial markers.
Next, open the dotvision_checker.m script in matlab, which should include:
Make sure to first add the library to path with something like: addpath('~/camera_calib')
After running this script, the first figure to appear should be:
This gui is useful for debugging the detection of the four fiducial markers. You can toggle through the images by pressing the left and right arrow keys.
The next figure should be:
This gui is useful for debugging the calibration. The first thing to do is to double check the calibration board geometry to make sure it's correct. Next, check the residuals to make sure they are reasonably small. I would also rotate the extrinsics to confirm the relative pose of the cameras makes sense. Lastly, you can toggle "w" and zoom into the calibration point with the largest residual.
请发表评论