The tlCamera base class offers an encapsulation for image sources that are in a known location in the workspace, and possibly return calibrated (undistorted) images. An important child class is the tlCameraStereo base class, which provides a generic interface to stereo engines.
Public Member Functions | |
tlCamera () | |
virtual | ~tlCamera () |
int | setPosition (int Tx, int Ty, int Tz) |
int | setOrientation (int Rx, int Ry, int Rz) |
bool | isCalibrated () |
int | getTx () |
int | getTy () |
int | getTz () |
int | getRx () |
int | getRy () |
int | getRz () |
virtual int | grab (tlImage *image)=0 |
virtual int | grab (tlImage *image, tlRect *rect)=0 |
virtual int | grabQueued (tlImage *image)=0 |
virtual int | grabQueued (tlImage *image, tlRect *rect)=0 |
int | getWidth () |
int | getHeight () |
int | getID () |
tl_format | getFormat () |
tlCamera::tlCamera | ( | ) |
tlCamera::~tlCamera | ( | ) | [virtual] |
int tlCamera::setPosition | ( | int | Tx, | |
int | Ty, | |||
int | Tz | |||
) |
Set the camera position in the workspace.
Tx | camera position on the X axis. | |
Ty | camera position on the Y axis. | |
Tz | camera position on the Z axis. |
int tlCamera::setOrientation | ( | int | Rx, | |
int | Ry, | |||
int | Rz | |||
) |
Set the camera orientation in the workspace.
Rx | camera orientation around the X axis. | |
Ry | camera orientation around the Y axis. | |
Rz | camera orientation around the Z axis. |
tlCamera::isCalibrated | ( | ) | [inline] |
Check whether the camera returns calibrated (undistorted) images or not.
tlCamera::getTx | ( | ) | [inline] |
Get the position of the camera on the X axis of the workspace.
tlCamera::getTy | ( | ) | [inline] |
Get the position of the camera on the Y axis of the workspace.
tlCamera::getTz | ( | ) | [inline] |
Get the position of the camera on the Z axis of the workspace.
tlCamera::getRx | ( | ) | [inline] |
Get the orientation of the camera around the X axis of the workspace.
tlCamera::getRy | ( | ) | [inline] |
Get the orientation of the camera around the X axis of the workspace.
tlCamera::getRz | ( | ) | [inline] |
Get the orientation of the camera around the X axis of the workspace.
virtual int tlCamera::grab | ( | tlImage * | image | ) | [pure virtual] |
This call acquires a full image from an image source. The image will have the size and format the source is currently configured for.
image | [out] a valid image pointer that will receive the image. |
Implements tlSource.
Implemented in tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, and tlCameraTSAI.
This call acquires a portion of an image from an image source. The image will have the size and format the source is currently configured for, but only the portion defined by the rect argument will contain valid pixel values.
image | [out] a valid image pointer that will receive the image. | |
rect | a pointer to the portion of the image to acquire. |
Implements tlSource.
Implemented in tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, and tlCameraTSAI.
virtual int tlCamera::grabQueued | ( | tlImage * | image | ) | [pure virtual] |
This call acquires a full image from an image source. The image will have the size and format the source is currently configured for.
image | [out] a valid image pointer that will receive the image. |
Implements tlSource.
Implemented in tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, and tlCameraTSAI.
This call acquires a portion of an image from an image source. The image will have the size and format the source is currently configured for, but only the portion defined by the rect argument will contain valid pixel values.
image | [out] a valid image pointer that will receive the image. | |
rect | a pointer to the portion of the image to acquire. |
Implements tlSource.
Implemented in tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, and tlCameraTSAI.
tlSource::getWidth | ( | ) | [inline, inherited] |
Returns the width of the image source. Any image acquired through this tlSource object will have the current width.
tlSource::getHeight | ( | ) | [inline, inherited] |
Returns the height of the image source. Any image acquired through this tlSource object will have the current height.
tlSource::getID | ( | ) | [inline, inherited] |
Return a unique identifier for this source. Identifiers are allocated dynamically and are only valid during application run-time.
tlSource::getFormat | ( | ) | [inline, inherited] |