---
title: "LensIntrinsics"
description: "API documentation for LensIntrinsics"
url: https://developer.disguise.one/python-api/docs/lensintrinsics/
---

# LensIntrinsics

Lens intrinsics parameters defining the projection and distortion of a camera lens model

See also: [Calibration Guide](/plugins/guides/calibration)

Base class: _\_BlipValue_

## Properties

#### **aspectRatio** : _float_

Aspect ratio (X/Y) of lens image. This may be different to the aspect of the resolution if the pixels aren’t square.

#### **centerShift** : _[Vec2](/python-api/docs/vec2#vec2)_

Center shift of the lens. In normalised units, relative to a sensor width of 1

#### **centerShiftMM** : _[Vec2](/python-api/docs/vec2#vec2)_

Center shift of the lens in millimeters.

#### **focalLength** : _float_

Focal length of the lens. In normalised units, relative to a sensor width of 1

#### **focalLengthMM** : _float_

Focal length of the lens in millimeters.

#### **fovH** : _float_ _(Read-Only)_

Horizontal field of view in radians.

#### **fovV** : _float_ _(Read-Only)_

Vertical field of view in radians.

#### **k1** : _float_

The first radial distortion coefficient, which multiplies r^2. In normalised units, relative to a sensor width of 1

#### **k1k2k3** : _[Vec](/python-api/docs/vec#vec)_

The three radial distortion coefficients.

#### **k2** : _float_

The second radial distortion coefficient, which multiplies r^4. In normalised units, relative to a sensor width of 1

#### **k3** : _float_

The third radial distortion coefficient, which multiplies r^6. In normalised units, relative to a sensor width of 1.

#### **paWidthMM** : _float_

Width of the sensor (projection area) in millimeters.

## Methods

#### **setFocalLengthFromFovH**(self, fovH: _float_)

Use a horizontal field of view to set the normalised focal length.

**Parameters**:

-   fovH: The desired horizontal field of view in radians.

#### **setFocalLengthFromFovV**(self, fovV: _float_, \_aspectRatio: _float_)

Use a vertical field of view to set the normalised focal length.

Aspect ratio required as an input so that this function can be called before aspectRatio is set.

**Parameters**:

-   fovV: The desired vertical field of view in radians.
-   \_aspectRatio: The aspect ratio (X/Y) of the lens image on the camera sensor.

#### **setFovHMaintainingFovV**(self, fovH: _float_)

Change the horizontal field of view without changing the vertical field of view.

Updates aspect ratio and focal length accordingly.

#### **setFovVMaintainingFovH**(self, fovV: _float_)

Change the vertical field of view without changing the horizontal field of view.

Updates aspect ratio accordingly.
