FUNCTION REFERENCE
cameraParameters
Calibration result of one camera: intrinsics, pattern extrinsics and accuracy (value class).
Calibration result of one camera: intrinsics, pattern extrinsics and accuracy (value class).
Syntax
params = cameraParametersSyntax
params = cameraParameters(Name, Value, ...)Names: K or IntrinsicMatrix (= K.'), default eye(3); RadialDistortion ([0 0]); TangentialDistortion ([0 0]); ImageSize ([]); RotationVectors and TranslationVectors (P-by-3, one row per pattern); WorldPoints (M-by-2, or M-by-3); WorldUnits ('mm'); EstimateSkew (false); NumRadialDistortionCoefficients (2 or 3; follows RadialDistortion when that is given); EstimateTangentialDistortion (false); ReprojectionErrors (M-by-2-by-P). Read-only derived properties: Intrinsics (a cameraIntrinsics), FocalLength, PrincipalPoint, Skew, K, RotationMatrices (3-by-3-by-P, rotationVectorToMatrix of each row: postmultiply, the transpose of the Rodrigues matrix), NumPatterns, MeanReprojectionError (mean distance of the ReprojectionErrors rows, NaN without them) and ReprojectedPoints (M-by-2-by-P: WorldPoints projected with each pattern's extrinsics and the lens distortion). All properties are read-only. Method: worldToImage.
Example
p = cameraParameters('K', [800 0 320; 0 800 240; 0 0 1], 'ImageSize', [480 640]); p.FocalLength % [800 800]Example
p = cameraParameters('RotationVectors', [0 0 pi/2], 'TranslationVectors', [0 0 100]); p.RotationMatrices % [0 1 0; -1 0 0; 0 0 1]Differences from MATLAB: PatternExtrinsics (rigidtform3d), multi-pattern calibrations and the 6-element RadialDistortion are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.