using the single camera calibrator app
camera calibrator overview
you can use the camera calibrator app to estimate camera intrinsics, extrinsics, and lens distortion parameters. you can use these camera parameters for various computer vision applications. these applications, such as removing the effects of lens distortion from an image, measuring planar objects, or reconstructing 3-d scenes from multiple cameras.
the suite of calibration functions used by the camera calibrator app provide the workflow for camera calibration. you can use these functions directly in the matlab® workspace. for a list of functions, see camera calibration.
follow this workflow to calibrate your camera using the app.
prepare the images, camera, and calibration pattern.
add the images and select standard or fisheye camera model.
calibrate the camera.
evaluate the calibration accuracy.
adjust the parameters to improve the accuracy (if necessary).
export the parameters object.
if the default values work well, then you do not need to make any adjustments before exporting the parameters.
choose a calibration pattern
the camera calibrator app supports checkerboard, circle grid, and custom detector patterns. for details on each of these patterns and pdf files containing printable patterns, see .
capture calibration images
for best calibration results, use between 10 and 20 images of the calibration pattern. the calibrator requires at least three images. use uncompressed images or lossless compression formats such as png. the calibration pattern and the camera setup must satisfy a set of requirements to work with the calibrator. for more details on camera setup and capturing images, see .
using the camera calibrator app
open the app
matlab toolstrip: on the apps tab, in the image processing and computer vision section, click the camera calibrator icon.
matlab command prompt: enter
cameracalibrator
add images and select camera model
to begin calibration, you must add images. you can add saved images from a folder or add images directly from a camera. the calibrator analyzes the images to ensure they meet the calibrator requirements. the calibrator then detects the points of the selected pattern. for details on camera setup and capturing images, see .
after you add images, the image and pattern properties dialog box to your session, appears. before the calibrator can analyze the calibration patterns, you must select the calibration pattern to detect and set image properties for the pattern structure. for more details on this dialog, see .
calibrate
once you are satisfied with the accepted images, on the calibration tab, select calibrate. the default calibration settings use a minimum set of camera parameters. start by running the calibration with the default settings. after evaluating the results, you can try to improve calibration accuracy by adjusting the settings or adding or removing images, and then calibrating again. if you switch between the standard and fisheye camera models, you must recalibrate.
evaluate calibration results
you can evaluate calibration accuracy by examining the reprojection errors, examining the camera extrinsics, or viewing the undistorted image. for best calibration results, use all three methods of evaluation.
improve calibration
to improve the calibration, you can remove high-error images, add more images, or modify the calibrator settings.
consider adding more images if:
you have fewer than 10 images.
the calibration patterns do not cover enough of the image frame.
the calibration patterns do not have enough variation in orientation with respect to the camera.
consider removing images if the images:
have a high mean reprojection error.
are blurry.
contain a calibration pattern at an angle greater than 45 degrees relative to the camera plane.
incorrectly detected calibration pattern points.
export camera parameters
when you are satisfied with your calibration accuracy, select export camera parameters for a standard camera model or export camera parameters for a fisheye camera model. you can either export the camera parameters to an object in the matlab workspace or generate the camera parameters as a matlab script.
references
[1] zhang, z. “a flexible new technique for camera calibration.” ieee transactions on pattern analysis and machine intelligence. 22, no. 11 (november 2000): 1330–34. https://doi.org/10.1109/34.888718.
[2] heikkila, j., and o. silven. “a four-step camera calibration procedure with implicit image correction.” in proceedings of ieee computer society conference on computer vision and pattern recognition. 1106–12. san juan, puerto rico: ieee comput. soc, 1997. https://doi.org/10.1109/cvpr.1997.609468.
[3] scaramuzza, davide, agostino martinelli, and roland siegwart. "a toolbox for easily calibrating omnidirectional cameras." in proceedings of ieee international workshop on intelligent robots and systems 2006 (iros 2006), 5695–701. beijing, china: ieee, 2006. https://doi.org/10.1109/iros.2006.282372
[4] urban, steffen, jens leitloff, and stefan hinz. “improved wide-angle, fisheye and omnidirectional camera calibration.” isprs journal of photogrammetry and remote sensing 108 (october 2015): 72–79. https://doi.org/10.1016/j.isprsjprs.2015.06.005.
see also
apps
functions
- | | | | |
objects
- |