FUNCTION REFERENCE

cameraIntrinsics

Camera intrinsic parameters of a pinhole camera with lens distortion (value class).

Camera intrinsic parameters of a pinhole camera with lens distortion (value class).

Syntax

intrinsics = cameraIntrinsics(focalLength, principalPoint, imageSize)

Syntax

intrinsics = cameraIntrinsics(K, imageSize)

Syntax

intrinsics = cameraIntrinsics(___, 'RadialDistortion', k, 'TangentialDistortion', p, 'Skew', s)

focalLength is [fx fy] in pixels, principalPoint [cx cy] in pixels and imageSize [mrows ncols]. RadialDistortion is [k1 k2] or [k1 k2 k3] (default [0 0]), TangentialDistortion [p1 p2] (default [0 0]) and Skew a scalar (default 0). Properties: FocalLength, PrincipalPoint, ImageSize, RadialDistortion, TangentialDistortion, Skew and K = [fx s cx; 0 fy cy; 0 0 1]; the older IntrinsicMatrix property is K.'. All properties are read-only: make a new object to change one. Method: worldToImage.

Example

c = cameraIntrinsics([800 810], [320 240], [480 640]); c.K   % [800 0 320; 0 810 240; 0 0 1]

Example

c = cameraIntrinsics([800 0 320; 0 800 240; 0 0 1], [480 640], 'RadialDistortion', [-0.2 0.05 0.01]); c.RadialDistortion

Differences from MATLAB: the 6-element (rational) RadialDistortion and fisheyeIntrinsics are not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.