Simple point coordinates are stored in tlPoint objects. tlPoint contains both 2D image coordonates, a disparity value, and 3D world coordonates. The tlPoint object also provides convenience routines to update and copy point coordinates.
Public Member Functions | |
tlPoint () | |
tlPoint (tlPoint *point) | |
tlPoint (int x, int y, int disp=0) | |
virtual | ~tlPoint () |
int | copy (tlPoint *point) |
int | copyTo (tlPoint *point) |
tlPoint * | copy () |
int | dist (tlPoint *point) |
int | dist (int x, int y) |
int | setLocation (int x, int y, int disp=0) |
int | setLocation (tlPoint *point) |
int | shift (int dx, int dy, int ddisp=0) |
int | setWorldLocation (float wx, float wy, float wz) |
tlLocation * | toLocation () |
int | toLocation (tlLocation *location) |
Public Attributes | |
int | x |
int | y |
int | disp |
float | wx |
float | wy |
float | wz |
tlPoint::tlPoint | ( | ) |
tlPoint::tlPoint | ( | tlPoint * | point | ) |
tlPoint::tlPoint | ( | int | x, | |
int | y, | |||
int | disp = 0 | |||
) |
Constructor
x | initial x location [pix] | |
y | initial y location [pix] | |
disp | initial disparity [disp] |
tlPoint::~tlPoint | ( | ) | [virtual] |
int tlPoint::copy | ( | tlPoint * | point | ) |
Copy the point data from an existing tlPoint object.
point | [out] destination point |
int tlPoint::copyTo | ( | tlPoint * | point | ) |
Copy point location to a new tlPoint object.
point | [out] destination point |
tlPoint * tlPoint::copy | ( | ) |
Create a copy of the point.
int tlPoint::dist | ( | tlPoint * | point | ) |
Compute the distance to another point
point | other extremity of distance to compute |
int tlPoint::dist | ( | int | x, | |
int | y | |||
) |
Compute the distance to another point
x | x coordinate of other extremity of distance to compute | |
y | y coordinate of other extremity of distance to compute |
int tlLocation::setLocation | ( | int | x, | |
int | y, | |||
int | disp = 0 | |||
) | [inherited] |
Set the location object parameters.
x | x location of the object [pix] | |
y | y location of the object [pix] | |
disp | disparity of the object [disp] |
int tlLocation::setLocation | ( | tlPoint * | point | ) | [inherited] |
Set the location object parameters.
point | tlPoint object |
int tlLocation::shift | ( | int | dx, | |
int | dy, | |||
int | ddisp = 0 | |||
) | [inherited] |
Shift the object location.
dx | shift along x axis [pix] | |
dy | shift along y axis [pix] | |
ddisp | disparity shift [disp] |
int tlLocation::setWorldLocation | ( | float | wx, | |
float | wy, | |||
float | wz | |||
) | [inherited] |
Set the world location object parameters.
wx | world X location | |
wy | world Y location | |
wz | world Z location |
tlLocation * tlLocation::toLocation | ( | ) | [inherited] |
Get a copy of the location of the object.
int tlLocation::toLocation | ( | tlLocation * | location | ) | [inherited] |
Get the location of the object.
location | [out] tlLocation object that will receive the data |
int tlLocation::x [inherited] |
X location of the object [pix].
int tlLocation::y [inherited] |
Y location of the object [pix].
int tlLocation::disp [inherited] |
Disparity of the object [disp].
int tlLocation::wx [inherited] |
X location of the object in real-world coordonates [m].
int tlLocation::wy [inherited] |
Y location of the object in real-world coordonates [m].
int tlLocation::wz [inherited] |
Z location of the object in real-world coordonates [m].