ABC Distortion#
Overview#
- class Distortion(parameters=None, constants=None)[source]#
Abstract base class for distortion camera transformations.
This class represents the distortion transformation, which is typically the central step in the camera projection pipeline:
world_points → normalized_points → distorted_points → image_points
The purpose of a distortion transformation is to map normalized coordinates to distorted normalized coordinates.
This abstract class defines the interface for all distortion transformations and provides common properties and aliases for convenience.
Attributes & Aliases#
input_dimintThe input dimension of the transformation. Always 2 (x, y).
output_dimintThe output dimension of the transformation. Always 2 (x, y).
distorted_points/x_d:Alias for the forward transformation result (from normalized points to distorted normalized coordinates).
normalized_points/x_n:Alias for the inverse transformation result (from distorted normalized points back to normalized coordinates).
Notes
The methods
distortandundistortare provided as convenient aliases fortransformandinverse_transform, respectively.Subclasses must implement
_transformand_inverse_transformto define the actual mapping and, optionally, the Jacobians.
- Parameters:
parameters (Optional[ArrayLike])
constants (Optional[ArrayLike])
Adding Public Methods of Distortion subclasses#
|
Alias for the |
|
Alias for the |
Implemented Distortion Models#
See the documentation Distortion Models for the implemented distortion models in the package.