ABC Intrinsic#

Overview#

class Intrinsic(parameters=None, constants=None)[source]#

Abstract base class for intrinsic camera transformations.

This class represents the intrinsic transformation, which is typically the last step in the camera projection pipeline:

world_points → normalized_points → distorted_points → image_points

The purpose of an intrinsic transformation is to map distorted normalized coordinates to image coordinates in the image plane.

This abstract class defines the interface for all intrinsic transformations and provides common properties and aliases for convenience.

Attributes & Aliases#

  • input_dimint

    The input dimension of the transformation. Always 2 (x, y).

  • output_dimint

    The output dimension of the transformation. Always 2 (x, y).

  • image_points / x_i :

    Alias for the forward transformation result (from distorted points to image coordinates).

  • distorted_points / x_d :

    Alias for the inverse transformation result (from image points back to distorted normalized coordinates).

Notes

  • If the camera does not have distortion, the distorted_points are identical to the normalized_points.

  • The methods scale and unscale are provided as convenient aliases for transform and inverse_transform, respectively.

  • Subclasses must implement _transform and _inverse_transform to define the actual mapping and, optionally, the Jacobians.

Parameters:
  • parameters (Optional[ArrayLike])

  • constants (Optional[ArrayLike])

Adding Public Methods of Intrinsic subclasses#

Intrinsic.scale(distorted_points, *[, ...])

Alias for the transform method, which applies the intrinsic transformation to the points.

Intrinsic.unscale(image_points, *[, ...])

Alias for the inverse_transform method, which applies the inverse intrinsic transformation to the points.

Implemented Intrinsic Models#

See the documentation Intrinsic Models for the implemented intrinsic models in the package.