pycvcam.OrthographicExtrinsic.from_rt#

classmethod OrthographicExtrinsic.from_rt(rvec, tvec)[source]#

Class method to create a OrthographicExtrinsic object from a rotation vector and a translation vector.

Parameters:
  • rvec (numpy.ndarray) – The rotation vector of the camera in the world coordinate system. It should be a numpy array of shape (3,).

  • tvec (numpy.ndarray) – The translation vector of the camera in the world coordinate system. It should be a numpy array of shape (3,).

Returns:

A new instance of the OrthographicExtrinsic class with the specified rotation and translation vectors.

Return type:

OrthographicExtrinsic

Examples

Create an extrinsic object with a rotation vector and a translation vector:

import numpy as np

from pycvcam import OrthographicExtrinsic

rvec = numpy.array([0.1, 0.2, 0.3])
tvec = numpy.array([0.5, 0.5, 0.5])

extrinsic = OrthographicExtrinsic.from_rt(rvec, tvec)