Main Content

Camera Calibrator

Estimate geometric parameters of a single camera

Description

TheCamera Calibratorapp allows you to estimate camera intrinsics, extrinsics, and lens distortion parameters. You can use these camera parameters for various computer vision applications. These applications include removing the effects of lens distortion from an image, measuring planar objects, or reconstructing 3-D scenes from multiple cameras.

Open the Camera Calibrator App

  • MATLAB®Toolstrip: On theAppstab, underImage Processing and Computer Vision, click the app icon.

  • MATLAB command prompt: EntercameraCalibrator.

Examples

expand all

This example shows you the two ways to open the Camera Calibrator app.

TypecameraCalibratoron the MATLAB command line or select it from the MATLAB desktopAppstab.

Related Examples

Programmatic Use

expand all

cameraCalibratoropens the Camera Calibrator app, which enables you to compute parameters needed to remove the effects of lens distortion from an image.

cameraCalibrator(imageFolder,squareSize)opens the app and loads calibration images from a specified folder and specifies the size of the checkerboard squares contained in the images. ThesquareSizeinput must be a scalar in millimeters.

cameraCalibrator(imageFolder,squareSize,squareSizeUnits)opens the app, loads calibration images, specifies the checkerboard square size, and the square size units. ThesquareSizeUnitsinput must be specified as'millimeters'(default),'centimeters', or'inches'.

cameraCalibrator(___,highDistortion)opens the app as described by previous syntaxes and additionally specifies a high distortion logicalhighDistortion. SethighDistortiontotruewhen the images contain a high level of distortion, which is typical of a wide field of view camera. SethighDistortiontofalse(default) when the images do not contain a high level of distortion.

cameraCalibrator(sessionFile)opens the app and loads a saved camera calibration session. Set thesessionFileto the name of the saved session file. The name must include the path to the MAT file containing the saved session.

版本历史

Introduced in R2013b