NoDistortion Class#
Overview#
- class NoDistortion(parameters=None, constants=None)[source]#
Identity distortion model.
This class represents a degenerate distortion transformation where no distortion is applied. Normalized camera coordinates are returned unchanged as distorted points.
Note
This transformation corresponds to the middle stage of the camera projection pipeline:
world_points → camera_points → normalized_points → distorted_points → image_pointsIn this model, the distortion step is simply the identity mapping.
Let \(\vec{x}_n = (x_n, y_n)\) be a point in normalized camera coordinates. The corresponding distorted point \(\vec{x}_d = (x_d, y_d)\) is defined as
\[\vec{x}_d = \vec{x}_n\]meaning that the normalized coordinates are directly interpreted as distorted points.
This model therefore has:
0 parameters
0 constants
- Parameters:
parameters (None)
constants (None)
Performing Projections#
Use the transform and inverse_transform methods from
pycvcam.core.Transform to perform distortion projections:
transform: mapsnormalized_points→distorted_points.inverse_transform: mapsdistorted_points→normalized_points.
Jacobians with respect to the input points and distortion parameters
can be computed by enabling the dx and dp flags:
dx=True: compute ∂distorted_points / ∂normalized_pointsdp=True: compute ∂distorted_points / ∂distortion_parameters
|
Apply the identity distortion transformation. |
|
Apply the inverse of the identity distortion transformation. |