This is the base class for any image acquisition for TLIB. It is used by tlDigitizer, tlCamera, tlSourceVideoFile and tlSourceFiles. You should only use tlSource as a base class to implement your own image acquisition interface.
Public Member Functions | |
tlSource () | |
virtual | ~tlSource () |
int | getWidth () |
int | getHeight () |
int | getID () |
tl_format | getFormat () |
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 |
tlSource::tlSource | ( | ) |
tlSource::~tlSource | ( | ) | [virtual] |
tlSource::getWidth | ( | ) | [inline] |
Returns the width of the image source. Any image acquired through this tlSource object will have the current width.
tlSource::getHeight | ( | ) | [inline] |
Returns the height of the image source. Any image acquired through this tlSource object will have the current height.
tlSource::getID | ( | ) | [inline] |
Return a unique identifier for this source. Identifiers are allocated dynamically and are only valid during application run-time.
tlSource::getFormat | ( | ) | [inline] |
tlSource::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. |
Implemented in tlCamera, tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, tlCameraTSAI, tlDigitizer, tlDigitizerDT3130, tlDigitizerDX, tlDigitizerPXC200, tlDigitizerV4L, tlDigitizerV4L2, tlDigitizerVRm, tlSourceFiles, and tlSourceVideoFile.
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. |
Implemented in tlCamera, tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, tlCameraTSAI, tlDigitizer, tlDigitizerDT3130, tlDigitizerDX, tlDigitizerPXC200, tlDigitizerV4L, tlDigitizerV4L2, tlDigitizerVRm, tlSourceFiles, and tlSourceVideoFile.
tlSource::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. |
Implemented in tlCamera, tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, tlCameraTSAI, tlDigitizer, tlDigitizerDT3130, tlDigitizerDX, tlDigitizerPXC200, tlDigitizerV4L, tlDigitizerV4L2, tlDigitizerVRm, tlSourceFiles, and tlSourceVideoFile.
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. |
Implemented in tlCamera, tlCameraStereo, tlCameraSVS, tlCameraSVSBase, tlCameraSVSHead, tlCameraTSAI, tlDigitizer, tlDigitizerDT3130, tlDigitizerDX, tlDigitizerPXC200, tlDigitizerV4L, tlDigitizerV4L2, tlDigitizerVRm, tlSourceFiles, and tlSourceVideoFile.