pycvcam.NoDistortion._inverse_transform#
- NoDistortion._inverse_transform(distorted_points, *, dx=False, dp=False)[source]#
Apply the inverse of the identity distortion transformation.
This method maps distorted normalized camera coordinates directly back to normalized camera coordinates without modification.
Let \(\vec{x}_d = (x_d, y_d)\) be a point in distorted normalized camera coordinates. The corresponding normalized camera point \(\vec{x}_n\) is defined as
\[\vec{x}_n = \vec{x}_d\]meaning that the distorted coordinates are returned unchanged.
Since this model has no distortion parameters:
the Jacobian with respect to the input points is the identity matrix,
the Jacobian with respect to the parameters is empty.
Warning
This method is intended for internal use. It should normally be accessed through
pycvcam.Transform.inverse_transform().- Parameters:
distorted_points (numpy.ndarray) – Distorted normalized camera coordinates. Shape
(n_points, 2).dx (bool, optional) – If
True, compute the Jacobian with respect to the input points.dp (bool, optional) – If
True, compute the Jacobian with respect to the parameters.
- Returns:
normalized_points (numpy.ndarray) – Normalized camera coordinates identical to the input distorted points. Shape
(n_points, 2).jacobian_dx (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the input points. Shape
(n_points, 2, 2)ifdx=True, otherwiseNone.jacobian_dp (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the parameters. Shape
(n_points, 2, 0)ifdp=True, otherwiseNone.
- Return type: