#include <tango_client_api.h>
Public Attributes | |
TangoCalibrationType | calibration_type |
TangoCameraId | camera_id |
ID of the camera which the intrinsics reference. | |
double | cx |
Principal point x coordinate on the image, in pixels. | |
double | cy |
Principal point y coordinate on the image, in pixels. | |
double | distortion [5] |
double | fx |
Focal length, x axis, in pixels. | |
double | fy |
Focal length, y axis, in pixels. | |
uint32_t | height |
The height of the image in pixels. | |
uint32_t | width |
The width of the image in pixels. |
The TangoCameraIntrinsics struct contains intrinsic parameters for a camera.
Given a 3D point (X, Y, Z) in camera coordinates, the corresponding pixel coordinates (x, y) are:
The normalized radial distance ru is given by:
ru = sqrt((X^2 + Y^2) / (Z^2))
The distorted radial distance rd depends on the distortion model used.
TANGO_CALIBRATION_POLYNOMIAL_3_PARAMETERS
implements Brown's camera model, where rd
is a polynomial that depends on the three distortion coefficients k1
, k2
and k3:
rd = ru + k1 * ru^3 + k2 * ru^5 + k3 * ru^7
TANGO_CALIBRATION_EQUIDISTANT
implements the FOV camera model, where rd
depends on the single distortion coefficient w:
rd = 1 / w * arctan(2 * ru * tan(w / 2))
For more information, see our page on Camera Intrinsics and Extrinsics.
Definition at line 525 of file tango_client_api.h.
The type of distortion model used. This determines the meaning of the distortion coefficients.
Definition at line 530 of file tango_client_api.h.
ID of the camera which the intrinsics reference.
Definition at line 527 of file tango_client_api.h.
double TangoCameraIntrinsics::cx |
Principal point x coordinate on the image, in pixels.
Definition at line 542 of file tango_client_api.h.
double TangoCameraIntrinsics::cy |
Principal point y coordinate on the image, in pixels.
Definition at line 544 of file tango_client_api.h.
double TangoCameraIntrinsics::distortion[5] |
Distortion coefficients. Number and meaning of these values depends on the distortion model specified by calibration_type.
Definition at line 548 of file tango_client_api.h.
double TangoCameraIntrinsics::fx |
Focal length, x axis, in pixels.
Definition at line 538 of file tango_client_api.h.
double TangoCameraIntrinsics::fy |
Focal length, y axis, in pixels.
Definition at line 540 of file tango_client_api.h.
uint32_t TangoCameraIntrinsics::height |
The height of the image in pixels.
Definition at line 535 of file tango_client_api.h.
uint32_t TangoCameraIntrinsics::width |
The width of the image in pixels.
Definition at line 533 of file tango_client_api.h.