Inherits opentl::input::ImageSensor.
Public Member Functions | |
virtual void | captureNext () |
capture the next image from the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class | |
virtual void | captureStart () |
start the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class | |
virtual void | captureStop () |
stop the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class | |
virtual void | close () |
closes the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class | |
virtual const opentl::core::cvdata::Image & | image () |
returns current frame | |
virtual void | init () |
initializes the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class | |
virtual void | open () |
opens the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class | |
OpenCVCamera (int camIndex=-1, int width=0, int height=0, double fps=-1.0) | |
virtual | ~OpenCVCamera () |
Protected Attributes | |
int | mCamIndex |
CvCapture * | mCapture |
double | mFPS |
opentl::input::OpenCVCamera::OpenCVCamera | ( | int | camIndex = -1 , |
|
int | width = 0 , |
|||
int | height = 0 , |
|||
double | fps = -1.0 | |||
) |
virtual opentl::input::OpenCVCamera::~OpenCVCamera | ( | ) | [virtual] |
virtual void opentl::input::OpenCVCamera::captureNext | ( | ) | [virtual] |
capture the next image from the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
Reimplemented from opentl::input::ImageSensor.
virtual void opentl::input::OpenCVCamera::captureStart | ( | ) | [virtual] |
start the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
Reimplemented from opentl::input::ImageSensor.
virtual void opentl::input::OpenCVCamera::captureStop | ( | ) | [virtual] |
stop the capturing process of the image sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
Reimplemented from opentl::input::ImageSensor.
virtual void opentl::input::OpenCVCamera::close | ( | ) | [virtual] |
closes the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
Reimplemented from opentl::input::AbstractSensor.
virtual const opentl::core::cvdata::Image& opentl::input::OpenCVCamera::image | ( | ) | [virtual] |
virtual void opentl::input::OpenCVCamera::init | ( | ) | [virtual] |
initializes the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
Reimplemented from opentl::input::AbstractSensor.
virtual void opentl::input::OpenCVCamera::open | ( | ) | [virtual] |
opens the connection to the sensor (e.g. a camera) IMPORTANT: implement this method in your sensor class
Reimplemented from opentl::input::AbstractSensor.
int opentl::input::OpenCVCamera::mCamIndex [protected] |
CvCapture* opentl::input::OpenCVCamera::mCapture [protected] |
double opentl::input::OpenCVCamera::mFPS [protected] |