Skip to content

Class libCalibGeom::Camera

Class representing a single camera.

The class describes a single camera with its specific camera/lens model and extrinsic (position and orientation) parameters.

Constructors and destructors

Camera()

Camera()

Default constructor.

Returns:

void

Camera()

Camera(const Camera & c)

Copy constructor.

Parameters:

cThe Camera to copy.

Returns:

void

Camera()

Camera(CameraModelType type,const ImageSize imageSize,const std::string & name = "")

Constructs a camera with a specific model type.

Parameters:

typeThe type of camera model (enum).
imageSizeThe resolution of the camera.
nameOptional name for the camera.

Returns:

void

Camera()

Camera(std::string model,const ImageSize imageSize,const std::string & name = "")

Constructs a camera with a specific model type by string name.

Parameters:

modelThe name of the camera model (e.g. "Brown-Conrady").
imageSizeThe resolution of the camera.
nameOptional name for the camera.

Returns:

void

Camera()

Camera(std::unique_ptr< CameraModelBase > _model)

Constructs a camera taking ownership of an existing model pointer.

Parameters:

_modelUnique pointer to the camera model.

Returns:

void

Public member functions

operator=()

Camera &operator=(Camera const & c)

Assignment operator.

Parameters:

cThe Camera to assign from.

Returns:

Camera &Reference to this camera.

toString()

std::stringtoString() const

Returns a string with a summary of all camera parameters.

Returns:

std::string

Public data members

name

std::stringname

An identifying name.

model

std::unique_ptr< CameraModelBase >model

The camera's model. Holds intrinsic parameters.

extrinsics

Extrinsicsextrinsics

The camera's extrinsic roto-translation parameters and their states (fixed/free/disabled). The extrinsics converts coordinates from the 0'th to this camera.