pysdic.NoDistortion#

NoDistortion class#

class NoDistortion(*args, **kwargs)[source]#

Bases: IdentityTransformation

Subclass of pysdic.IdentityTransformation that represents a no-distortion transformation (identity transformation of the 2D points).

\[\vec{x}_d = \vec{x}_n\]

This can be used as a default or placeholder distortion transformation when no distortion is present in the camera model. The distorted points are then equal to the normalized points.

See also

Instantiation#

The NoDistortion class takes no argument and is instantiated directly with NoDistortion().

Implemented methods and attributes#

The following sections provide an overview of the attributes and methods defined in the pysdic.NoDistortion class.

Attributes#

The pysdic.NoDistortion has no parameters: parameters is an empty vector.

Performing Projections#

Use the apply and invert methods from pysdic.Transformation to perform distortion projections:

  • apply: maps normalized_points → distorted_points (identity).

  • invert: maps distorted_points → normalized_points (identity).

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_points (identity matrix)

  • dp=True: compute ∂distorted_points / ∂distortion_parameters (empty)

NoDistortion._apply(x_i, *[, dx, dp])

Apply the identity transformation from \(\mathbb{R}^{n_i}\) to \(\mathbb{R}^{n_o}\).

NoDistortion._invert(x_o, *[, dx, dp])

Apply the identity transformation from \(\mathbb{R}^{n_o}\) to \(\mathbb{R}^{n_i}\).