About
  1. | API Documentation
  2. | Common
  3. | processing
  4. | CamMats

CamMats

Defined in <processing/CamMats.h>

This Class holds all of the information regarding camera matrices and transforms of them.

class CamMats;

Member Fields

Field Type Notes

Member Functions

(constructor)
C

A list of postions in world coordinates of the cameras in the setup.

Distortion

Returns a vector of matrices where each item is a camera’s distortion matrix. The index of the matrix follows the index of the list of cameras.

EigenM

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 3x4 projection matrix but stored as an Eigen matrix instead of an opencv type.

Extrinsic

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is the extrinsic matrix for that camera. The extrinsic matrix is the inverse of the pose matrix. The camera’s extrinsic matrix describes the camera’s location in the world, and what direction it’s pointing. In other words, it takes world coordinates and transforms them into camera coordinates.

GetPrincipalPointInfo

These functions return the principle point for the camera. The principle point is the point in image coordinates where the principle ray intersects the image plane. The principle ray is the ray that goes through the pinhole of the camera.

Init

Initialize everything by passing a path to the camera calibration matrices file.

Instance

We don’t need more than one CamMats object hanging around for a single project, so we share it. This method gives you access to that shared object.

K

A vector of matrices corresponding to cameras with the same index. Each matrix is the intrinsic matrix of the camera.

KH

A vector of matrices corresponding to cameras with the same index. Each matrix is the intrinsic matrix of the camera multiplied by a homogenous matrix to make the final matrix 3x4 instead of 3x3.

KInvH

A vector of matrices corresponding to cameras with the same index. Each matrix is the inverse intrinsic matrix of the camera multiplied by a homogenous matrix to make the final matrix 3x4 instead of 3x3.

M

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 3x4 projection matrix.

MInv

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 3x4 inverse projection matrix.

Pose

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 4x4 pose matrix. A pose matrix is the inverse of a projection matrix. It describes image coordinates in terms of world coordinates.

R

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 4x4 rotation matrix.

RInv

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 4x4 inverse rotation matrix.

T

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 4x4 translation matrix.

TInv

Vector with matrices corresponding to each camera in the setup in corresponding index. Each matrix is a 4x4 inverse translation matrix.

isInit

Has the shared CamMats object been already initialized?

SnakeStrike — An program for high-speed multi-camera data collection and triangulation.

Page owner(s): gwjensen  Last updated: 2020-09-28 07:40:17 +0000