LensIntrinsics
Lens intrinsics parameters defining the projection and distortion of a camera lens model
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
Center shift of the lens. In normalised units, relative to a sensor width of 1
centerShiftMM : 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
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.