Module:
sdynpy.fileio.sdynpy_vicSource: GitHub
Signature¶
def sdynpy.fileio.sdynpy_vic.get_vic_camera_parameters(K, RT)Computes VIC3D Camera Information for the project.xml file
This function computes VIC3D Camera Calibration information from a camera intrinsic and extrinsic matrix. This can be placed into a the project.xml file inside the unzipped Z3D project file.
Parameters¶
K : ndarray A 3 x 3 upper triangular array consisting of the camera intrinisc parameters.
RT : ndarray A 3 x 4 array where the first three columns are an orthogonal matrix denoting a rotation matrix, and the last column is a translation.
Returns¶
intrinsics : iterable A list of parameters that define the camera intrinsic properties. They are ordered cx, cy, fx, fy, s
extrinsics : iterable A list of parameters that define the camera extrinsic properties. They are ordered rx, ry, rz, tx, ty, tz