pycvcam.NoExtrinsic._transform#
- NoExtrinsic._transform(world_points, *, dx=False, dp=False)[source]#
Apply the identity extrinsic transformation.
This method maps world coordinates directly to normalized coordinates without modification.
Let \(\vec{X}_w = (X_w, Y_w, Z_w)\) be a point in world coordinates. The corresponding normalized point \(\vec{x}_n = (x_n, y_n)\) is defined as
\[\vec{x}_n = (X_w, Y_w)\]meaning that the z-coordinate is ignored 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.transform().- Parameters:
world_points (numpy.ndarray) – World coordinates. Shape
(n_points, 3).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 coordinates identical to the input world points (ignoring the z-coordinate). Shape
(n_points, 2).jacobian_dx (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the input points. Shape
(n_points, 2, 3)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: