pysdic.PinholeIntrinsic.from_vector#

classmethod PinholeIntrinsic.from_vector(vector, **kwargs)[source]#

Class method to create a pysdic.PinholeIntrinsic object from an intrinsic vector \(k\).

Parameters:
  • vector (ArrayLike) – The intrinsic vector of the camera with shape (4,) ordered as \((f_x, f_y, c_x, c_y)\) or shape (5,) ordered as \((f_x, f_y, c_x, c_y, s)\) if use_skew=True.

  • **kwargs – Additional keyword arguments for the class initialisation (use_skew, allow_negative_focal).

Returns:

A new instance of the pysdic.PinholeIntrinsic class with the specified intrinsic vector.

Return type:

pysdic.PinholeIntrinsic