Intrinsic parameters of a camera.
More...
|
void | SetUp (float focal_x, float focal_y, float center_x, float center_y) |
| Setups the parameter of a camera. More...
|
|
Intrinsic parameters of a camera.
Those information about the camera will be returned by Camera::getCameraInformation().
- Note
- Similar to the CalibrationParameters, those parameters are taken from the settings file (SNXXX.conf) and are modified during the sl::Camera::open call when running a self-calibration). Those parameters given after sl::Camera::open call, represent the camera matrix corresponding to rectified or unrectified images.
-
When filled with rectified parameters, fx,fy,cx,cy must be the same for Left and Right Camera once sl::Camera::open has been called. Since distortion is corrected during rectification, distortion should not be considered on rectified images.
◆ SetUp()
void SetUp |
( |
float |
focal_x, |
|
|
float |
focal_y, |
|
|
float |
center_x, |
|
|
float |
center_y |
|
) |
| |
|
inline |
Setups the parameter of a camera.
size in pixels of the images given by the camera.
- Parameters
-
focal_x | : horizontal focal length. |
focal_y | : vertical focal length. |
focal_x | : horizontal optical center. |
focal_x | : vertical optical center. |
◆ fx
Focal length in pixels along x axis.
◆ fy
Focal length in pixels along y axis.
◆ cx
Optical center along x axis, defined in pixels (usually close to width/2).
◆ cy
Optical center along y axis, defined in pixels (usually close to height/2).
◆ disto
Distortion factor : [ k1, k2, p1, p2, k3 ]. Radial (k1,k2,k3) and Tangential (p1,p2) distortion.
◆ v_fov
Vertical field of view, in degrees.
◆ h_fov
Horizontal field of view, in degrees.
◆ d_fov
Diagonal field of view, in degrees.
◆ image_size