pysdic.PinholeIntrinsic.from_components#

classmethod PinholeIntrinsic.from_components(fx, fy, cx, cy, s=None, **kwargs)[source]#

Class method to create a pysdic.PinholeIntrinsic object from the individual components of the intrinsic parameters.

Parameters:
  • fx (Real) – The focal length of the camera in pixels in x direction.

  • fy (Real) – The focal length of the camera in pixels in y direction.

  • cx (Real) – The principal point of the camera in pixels in x direction.

  • cy (Real) – The principal point of the camera in pixels in y direction.

  • s (Optional[Real], optional (default: None)) – The skew parameter of the camera. Only allowed if use_skew=True, in which case None means a zero skew.

  • **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 parameters.

Return type:

pysdic.PinholeIntrinsic