pycvcam.NoIntrinsic._transform#

NoIntrinsic._transform(distorted_points, *, dx=False, dp=False)[source]#

Apply the identity intrinsic transformation.

This method maps distorted normalized camera coordinates directly to image coordinates without modification.

Let \(\vec{x}_d = (x_d, y_d)\) be a point in distorted normalized camera coordinates. The corresponding image point \(\vec{x}_i\) is defined as

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

meaning that the distorted coordinates are returned unchanged.

Since this model has no intrinsic 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:
  • 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:

  • image_points (numpy.ndarray) – Image coordinates identical to the input 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) if dx=True, otherwise None.

  • jacobian_dp (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the parameters. Shape (n_points, 2, 0) if dp=True, otherwise None.

Return type:

Tuple[ndarray, ndarray | None, ndarray | None]