CalibrationParameters Struct Reference

Structure containing intrinsic and extrinsic parameters of the camera (translation and rotation). More...

Functions

float getCameraBaseline ()
 Return the baseline of the camera in the sl::UNIT defined in sl::InitParameters.coordinate_units. More...
 
CalibrationParameters scale (sl::Resolution const &output_resolution) const
 computes and returns the calibration associated to the query resolution More...
 

Attributes

CameraParameters left_cam
 Intrinsics sl::CameraParameters of the left camera. More...
 
CameraParameters right_cam
 Intrinsics sl::CameraParameters of the right camera. More...
 
Transform stereo_transform
 Left to right camera transform, expressed in user coordinate system and unit (defined by InitParameters). More...
 

Detailed Description

Structure containing intrinsic and extrinsic parameters of the camera (translation and rotation).

That information about the camera will be returned by sl::Camera.getCameraInformation().

Note
The calibration/rectification process, called during sl::Camera.open(), is using the raw parameters defined in the SNXXX.conf file, where XXX is the serial number of the camera.
Those values may be adjusted or not by the self-calibration to get a proper image alignment.
After sl::Camera.open() is done (with or without self-calibration activated), most of the stereo parameters (except baseline of course) should be 0 or very close to 0.
It means that images after rectification process (given by sl::Camera.retrieveImage()) are aligned as if they were taken by a "perfect" stereo camera, defined by the new sl::CalibrationParameters.
Warning
CalibrationParameters are returned in sl::COORDINATE_SYSTEM::IMAGE, they are not impacted by the sl::InitParameters::coordinate_system.

Functions

◆ getCameraBaseline()

float getCameraBaseline ( )

Return the baseline of the camera in the sl::UNIT defined in sl::InitParameters.coordinate_units.

◆ scale()

CalibrationParameters scale ( sl::Resolution const &  output_resolution) const
inline

computes and returns the calibration associated to the query resolution

Parameters
output_resolutionthe query resolution
Returns
CalibrationParameters

Variables

◆ left_cam

CameraParameters left_cam

Intrinsics sl::CameraParameters of the left camera.

Referenced by CalibrationParameters::scale().

◆ right_cam

CameraParameters right_cam

Intrinsics sl::CameraParameters of the right camera.

Referenced by CalibrationParameters::scale().

◆ stereo_transform

Transform stereo_transform

Left to right camera transform, expressed in user coordinate system and unit (defined by InitParameters).

Referenced by CalibrationParameters::scale().