Public Attributes
TangoCameraIntrinsics Struct Reference

#include <tango_client_api.h>

List of all members.

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.

Detailed Description

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:

 x = X / Z * fx * rd / ru + cx
 y = Y / Z * fy * rd / ru + cy

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.


Member Data Documentation

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.

Principal point x coordinate on the image, in pixels.

Definition at line 542 of file tango_client_api.h.

Principal point y coordinate on the image, in pixels.

Definition at line 544 of file tango_client_api.h.

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.

Focal length, x axis, in pixels.

Definition at line 538 of file tango_client_api.h.

Focal length, y axis, in pixels.

Definition at line 540 of file tango_client_api.h.

The height of the image in pixels.

Definition at line 535 of file tango_client_api.h.

The width of the image in pixels.

Definition at line 533 of file tango_client_api.h.


The documentation for this struct was generated from the following file:


tango_client_api
Author(s):
autogenerated on Thu Jun 6 2019 19:49:50