pysdic.ProjectionResult#

class ProjectionResult(x, jacobian_dx=None, jacobian_dp=None, n_extrinsic=0, n_distortion=0, n_intrinsic=0)[source]#

A class to represent the result of the projection of world points to image points.

It extends pysdic.TransformationResult with the number of parameters of each step of the projection, to give access to the blocks of the Jacobian with respect to the parameters of the extrinsic, distortion and intrinsic transformations.

The parameters of the projection are ordered as in the composition \(T = \text{Intrinsic} \circ \text{Distortion} \circ \text{Extrinsic}\):

jacobian_dp[..., :N_e]               # extrinsic parameters
jacobian_dp[..., N_e:N_e + N_d]      # distortion parameters
jacobian_dp[..., N_e + N_d:]         # intrinsic parameters

See also

Parameters:
  • x (numpy.ndarray) – The image points \(\vec{x}_i\). Shape \((\dots, 2)\).

  • jacobian_dx (Optional[numpy.ndarray]) – The Jacobian of the image points with respect to the world points, or None if not computed. Shape \((\dots, 2, n_w)\) with \(n_w\) the dimension of the world points.

  • jacobian_dp (Optional[numpy.ndarray]) – The Jacobian of the image points with respect to the parameters of the projection, or None if not computed. Shape \((\dots, 2, N_e + N_d + N_i)\).

  • n_extrinsic (int) – The number of parameters \(N_e\) of the extrinsic transformation.

  • n_distortion (int) – The number of parameters \(N_d\) of the distortion transformation.

  • n_intrinsic (int) – The number of parameters \(N_i\) of the intrinsic transformation.

property image_points: ndarray#

[Get] the image points \(\vec{x}_i\) (alias of x). Shape \((\dots, 2)\).

Returns:

The image points.

Return type:

numpy.ndarray

property jacobian_ddistortion: ndarray | None#

[Get] the Jacobian of the image points with respect to the distortion parameters, as a view of jacobian_dp[..., N_e:N_e + N_d]. Shape \((\dots, 2, N_d)\).

Returns:

The Jacobian with respect to the distortion parameters, or None if not computed.

Return type:

Optional[numpy.ndarray]

property jacobian_dextrinsic: ndarray | None#

[Get] the Jacobian of the image points with respect to the extrinsic parameters, as a view of jacobian_dp[..., :N_e]. Shape \((\dots, 2, N_e)\).

Returns:

The Jacobian with respect to the extrinsic parameters, or None if not computed.

Return type:

Optional[numpy.ndarray]

property jacobian_dintrinsic: ndarray | None#

[Get] the Jacobian of the image points with respect to the intrinsic parameters, as a view of jacobian_dp[..., N_e + N_d:]. Shape \((\dots, 2, N_i)\).

Returns:

The Jacobian with respect to the intrinsic parameters, or None if not computed.

Return type:

Optional[numpy.ndarray]