TLIB documentation
 

tlLocation Class Reference

Inheritance diagram for tlLocation:

Inheritance graph
[legend]

List of all members.


Detailed Description

Location object.

Public Member Functions

 tlLocation ()
 tlLocation (int x, int y, int disp=0)
virtual ~tlLocation ()
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)
tlLocationtoLocation ()
int toLocation (tlLocation *location)

Public Attributes

int x
int y
int disp
float wx
float wy
float wz

Constructor & Destructor Documentation

tlLocation::tlLocation (  ) 

Constructor.

Note:
See error management for details.

References disp, TL_NO_ERROR, wx, wy, wz, x, and y.

Referenced by toLocation().

tlLocation::tlLocation ( int  x,
int  y,
int  disp = 0 
)

Constructor.

Parameters:
x x location of the object [pix]
y y location of the object [pix]
disp disparity of the object [disp]
Note:
See error management for details.

References TL_NO_ERROR, wx, wy, and wz.

tlLocation::~tlLocation (  )  [virtual]

Destructor.

Destructor.

Note:
See error management for details.

References TL_NO_ERROR.


Member Function Documentation

int tlLocation::setLocation ( int  x,
int  y,
int  disp = 0 
)

Set the location object parameters.

Parameters:
x x location of the object [pix]
y y location of the object [pix]
disp disparity of the object [disp]
Returns:
0 on success, -1 otherwise.
See error management for details.

Referenced by tlLine::clip(), tlLine::copy(), tlObject::define(), tlSpiral::get(), tlSpiral::getLast(), tlSpiral::getNext(), tlMask::merge(), tlLine::set(), tl_find_shape(), tlObject::tlObject(), tlCameraSVSBase::toImage(), toLocation(), and tlSpiral::toNext().

int tlLocation::setLocation ( tlPoint point  ) 

Set the location object parameters.

Parameters:
point tlPoint object
Returns:
0 on success, -1 otherwise.
See error management for details.

References disp, x, and y.

int tlLocation::shift ( int  dx,
int  dy,
int  ddisp = 0 
)

Shift the object location.

Parameters:
dx shift along x axis [pix]
dy shift along y axis [pix]
ddisp disparity shift [disp]
Returns:
0 on success, -1 otherwise.
See error management for details.

References disp, x, and y.

int tlLocation::setWorldLocation ( float  wx,
float  wy,
float  wz 
)

Set the world location object parameters.

Parameters:
wx world X location
wy world Y location
wz world Z location
Returns:
0 on success, -1 otherwise.
See error management for details.

Referenced by toLocation(), and tlCameraSVSBase::toWorld().

tlLocation * tlLocation::toLocation (  ) 

Get a copy of the location of the object.

Returns:
A pointer to a tlLocation object containing the data.
Note:
It is the responsibility of the programmer to delete the object returned.

References disp, setLocation(), setWorldLocation(), tlLocation(), wx, wy, wz, x, and y.

Referenced by tlCameraSVSBase::toImage(), and tlCameraSVSBase::toWorld().

int tlLocation::toLocation ( tlLocation location  ) 

Get the location of the object.

Parameters:
location [out] tlLocation object that will receive the data
Returns:
0 on success, -1 otherwise.
See error management for details.

References disp, wx, wy, wz, x, and y.


Member Data Documentation

X location of the object [pix].

Referenced by tlMask::adjust(), tlChain::blindExtract(), tlHist2D::build(), tlHist::build(), tlPixelArray::clear(), tlRect::collapse(), tlRect::copy(), tlPoint::copy(), tlPixelArray::copy(), tlObject::copy(), tlMask::copy(), tlRect::copyTo(), tlPoint::copyTo(), tlImage::crop(), tlObject::define(), tlCameraTSAI::dewarp(), tlPoint::dist(), tlImage::drawCross(), tlImage::drawLine(), tlImage::drawMask(), tlImage::drawObject(), tlImage::drawPoint(), tlImage::drawRect(), tlImage::drawText(), tlRect::expand(), tlObject::extract(), tlChain::extract(), tlImage::fillObject(), tlImage::fillRect(), tlColorModel::filter(), tlBackground::filter(), tlPixelArray::findBestShape(), tlPixelArray::findShape(), tlCameraSVSBase::getDisparity(), tlPixelArray::getMax(), tlPixelArray::getMin(), tlPixelArray::getPixel(), tlObject::getPredictedPosition(), tlObject::getPredictedX(), tlCameraSVSBase::getRight(), tlSourceVideoFile::grab(), tlDigitizerVRm::grab(), tlDigitizerV4L::grab(), tlDigitizerPXC200::grab(), tlDigitizerDX::grab(), tlDigitizerDT3130::grab(), tlCameraSVSHead::grab(), tlSourceVideoFile::grabQueued(), tlDigitizerPXC200::grabQueued(), tlDigitizerDT3130::grabQueued(), tlSpiral::init(), tlRect::intersect(), tlMask::invert(), tlChain::isIn(), tlPixelArray::mask(), tlPixelArray::median(), tlMask::merge(), tlMask::minimize(), tlMask::set(), tlLine::set(), tlColor::set(), setLocation(), tlPixelArray::setPixel(), shift(), tl_channel_put(), tl_channel_swap(), tl_convolution(), tl_convolution_x(), tl_convolution_y(), tl_copy_array(), tl_copy_hrarray(), tl_copy_hrsubarray(), tl_copy_subarray(), tl_dilate_all(), tl_dilate_bin(), tl_dilate_gray(), tl_edges_bin(), tl_erode_all(), tl_erode_bin(), tl_erode_gray(), tl_extract_color_gray(), tl_extract_color_hsi(), tl_extract_color_max_gray(), tl_extract_color_max_hsi(), tl_extract_color_max_nrg(), tl_extract_color_max_rgb(), tl_extract_color_max_yuv(), tl_extract_color_min_gray(), tl_extract_color_min_hsi(), tl_extract_color_min_nrg(), tl_extract_color_min_rgb(), tl_extract_color_min_yuv(), tl_extract_color_nrg(), tl_extract_color_rgb(), tl_extract_color_yuv(), tl_filter_gray(), tl_filter_hrgray(), tl_filter_hsi(), tl_filter_nrg(), tl_filter_rgb(), tl_find_best_object(), tl_find_best_shape(), tl_find_object(), tl_find_shape(), tl_gray2bin(), tl_gray2rgb(), tl_hrgray2bin(), tl_hrgray2gray(), tl_hsi2bin(), tl_hsi2gray(), tl_hsi2rgb(), tl_normalize_gray(), tl_nrg2bin(), tl_nrg2gray(), tl_pixel_add(), tl_pixel_hradd(), tl_pixel_hrscale(), tl_pixel_hrsub(), tl_pixel_scale(), tl_pixel_sub(), tl_rgb2bin(), tl_rgb2gray(), tl_rgb2hsi(), tl_rgb2nrg(), tl_rgb2yuv(), tl_thin_hitandmiss(), tl_to_channel(), tl_yuv2bin(), tl_yuv2gray(), tl_yuv2nrg(), tl_yuv2rgb(), tlLocation(), tlMask::tlMask(), tlSpiral::tlSpiral(), tlCameraTSAI::toImage(), toLocation(), tlPixelArray::toRect(), tlCameraTSAI::toWorld(), tlCameraSVSBase::toWorld(), tlBackground::update(), and tlCameraTSAI::warp().

Y location of the object [pix].

Referenced by tlMask::adjust(), tlChain::blindExtract(), tlHist2D::build(), tlHist::build(), tlPixelArray::clear(), tlRect::collapse(), tlRect::copy(), tlPoint::copy(), tlPixelArray::copy(), tlObject::copy(), tlMask::copy(), tlRect::copyTo(), tlPoint::copyTo(), tlImage::crop(), tlObject::define(), tlCameraTSAI::dewarp(), tlPoint::dist(), tlImage::drawCross(), tlImage::drawLine(), tlImage::drawMask(), tlImage::drawObject(), tlImage::drawPoint(), tlImage::drawRect(), tlImage::drawText(), tlRect::expand(), tlObject::extract(), tlChain::extract(), tlImage::fillObject(), tlImage::fillRect(), tlColorModel::filter(), tlBackground::filter(), tlPixelArray::findBestShape(), tlPixelArray::findShape(), tlCameraSVSBase::getDisparity(), tlPixelArray::getMax(), tlPixelArray::getMin(), tlPixelArray::getPixel(), tlObject::getPredictedPosition(), tlObject::getPredictedY(), tlCameraSVSBase::getRight(), tlSourceVideoFile::grab(), tlDigitizerVRm::grab(), tlDigitizerV4L::grab(), tlDigitizerPXC200::grab(), tlDigitizerDX::grab(), tlDigitizerDT3130::grab(), tlCameraSVSHead::grab(), tlSourceVideoFile::grabQueued(), tlDigitizerPXC200::grabQueued(), tlDigitizerDT3130::grabQueued(), tlSpiral::init(), tlRect::intersect(), tlChain::isIn(), tlPixelArray::mask(), tlPixelArray::median(), tlMask::merge(), tlMask::minimize(), tlMask::set(), tlLine::set(), tlColor::set(), setLocation(), tlPixelArray::setPixel(), shift(), tl_channel_put(), tl_channel_swap(), tl_convolution(), tl_convolution_x(), tl_convolution_y(), tl_copy_array(), tl_copy_hrarray(), tl_copy_hrsubarray(), tl_copy_subarray(), tl_dilate_all(), tl_dilate_bin(), tl_dilate_gray(), tl_edges_bin(), tl_erode_all(), tl_erode_bin(), tl_erode_gray(), tl_extract_color_gray(), tl_extract_color_hsi(), tl_extract_color_max_gray(), tl_extract_color_max_hsi(), tl_extract_color_max_nrg(), tl_extract_color_max_rgb(), tl_extract_color_max_yuv(), tl_extract_color_min_gray(), tl_extract_color_min_hsi(), tl_extract_color_min_nrg(), tl_extract_color_min_rgb(), tl_extract_color_min_yuv(), tl_extract_color_nrg(), tl_extract_color_rgb(), tl_extract_color_yuv(), tl_filter_gray(), tl_filter_hrgray(), tl_filter_hsi(), tl_filter_nrg(), tl_filter_rgb(), tl_find_best_object(), tl_find_best_shape(), tl_find_object(), tl_find_shape(), tl_gray2bin(), tl_gray2rgb(), tl_hrgray2bin(), tl_hrgray2gray(), tl_hsi2bin(), tl_hsi2gray(), tl_hsi2rgb(), tl_normalize_gray(), tl_nrg2bin(), tl_nrg2gray(), tl_pixel_add(), tl_pixel_hradd(), tl_pixel_hrscale(), tl_pixel_hrsub(), tl_pixel_scale(), tl_pixel_sub(), tl_rgb2bin(), tl_rgb2gray(), tl_rgb2hsi(), tl_rgb2nrg(), tl_rgb2yuv(), tl_thin_hitandmiss(), tl_to_channel(), tl_yuv2bin(), tl_yuv2gray(), tl_yuv2nrg(), tl_yuv2rgb(), tlLocation(), tlMask::tlMask(), tlSpiral::tlSpiral(), tlCameraTSAI::toImage(), toLocation(), tlPixelArray::toRect(), tlCameraTSAI::toWorld(), tlCameraSVSBase::toWorld(), tlBackground::update(), and tlCameraTSAI::warp().

X location of the object in real-world coordonates [m].

Referenced by tlLocation(), tlCameraTSAI::toImage(), tlCameraSVSBase::toImage(), toLocation(), and tlCameraTSAI::toWorld().

Y location of the object in real-world coordonates [m].

Referenced by tlLocation(), tlCameraTSAI::toImage(), tlCameraSVSBase::toImage(), toLocation(), and tlCameraTSAI::toWorld().

Z location of the object in real-world coordonates [m].

Referenced by tlLocation(), tlCameraTSAI::toImage(), tlCameraSVSBase::toImage(), toLocation(), and tlCameraTSAI::toWorld().


The documentation for this class was generated from the following files:


TLIB documentation - generated on 12 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.