pycvcam.NoExtrinsic._inverse_transform#
- NoExtrinsic._inverse_transform(normalized_points, *, dx=False, dp=False)[source]#
Apply the inverse of the identity extrinsic transformation.
This method maps normalized coordinates directly back to world coordinates without modification.
Let \(\vec{x}_n = (x_n, y_n)\) be a point in normalized coordinates. The corresponding world point \(\vec{X}_w = (X_w, Y_w, Z_w)\) is defined as
\[\vec{X}_w = (x_n, y_n, 1)\]meaning that the z-coordinate is set to 1 for the normalization plane.
Since this model has no extrinsic 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:
normalized_points (numpy.ndarray) – Normalized 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:
world_points (numpy.ndarray) – World coordinates corresponding to the input normalized points (with z=1). Shape
(n_points, 3).jacobian_dx (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the input points. Shape
(n_points, 3, 2)ifdx=True, otherwiseNone.jacobian_dp (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the parameters. Shape
(n_points, 3, 0)ifdp=True, otherwiseNone.
- Return type: