pycvcam.SkewIntrinsic.from_matrix#
- classmethod SkewIntrinsic.from_matrix(intrinsic_matrix)[source]#
Class method to create a SkewIntrinsic object from an intrinsic matrix.
- Parameters:
intrinsic_matrix (numpy.ndarray) – The intrinsic matrix of the camera. It should be a numpy array of shape (3, 3).
- Returns:
A new instance of the SkewIntrinsic class with the specified intrinsic matrix.
- Return type:
Examples
Create an intrinsic object with a given intrinsic matrix:
import numpy as np from pycvcam import SkewIntrinsic intrinsic_matrix = numpy.array([[1000, 5, 320], [0, 1000, 240], [0, 0, 1]]) intrinsic = SkewIntrinsic.from_matrix(intrinsic_matrix)