Implementation of Capture interface for Highgui plugin. More...
#include <CapturePluginHighgui.h>
Public Member Functions | |
CaptureHighgui (const CaptureDevice captureDevice) | |
Constructor. | |
IplImage * | captureImage () |
Capture one image from the camera. | |
bool | Serialize (Serialization *serialization) |
Performs serialization of the class members and configuration. | |
std::string | SerializeId () |
The identification of the class for serialization. | |
void | setResolution (const unsigned long xResolution, const unsigned long yResolution) |
Set the resolution. | |
bool | showSettingsDialog () |
Show the settings dialog of the camera. | |
bool | start () |
Starts the camera capture. | |
void | stop () |
Stops the camera capture. | |
~CaptureHighgui () | |
Destructor. | |
Private Attributes | |
IplImage | mImage |
cv::Mat | mMatrix |
cv::VideoCapture | mVideoCapture |
Implementation of Capture interface for Highgui plugin.
Definition at line 58 of file CapturePluginHighgui.h.
alvar::plugins::CaptureHighgui::CaptureHighgui | ( | const CaptureDevice | captureDevice | ) |
Constructor.
captureDevice | Information of which camera to create. |
Definition at line 31 of file CapturePluginHighgui.cpp.
Destructor.
Definition at line 39 of file CapturePluginHighgui.cpp.
IplImage * alvar::plugins::CaptureHighgui::captureImage | ( | ) | [virtual] |
Capture one image from the camera.
Do not modify this image.
Implements alvar::Capture.
Definition at line 80 of file CapturePluginHighgui.cpp.
bool alvar::plugins::CaptureHighgui::Serialize | ( | Serialization * | serialization | ) | [virtual] |
Performs serialization of the class members and configuration.
serialization | The Serialization object. |
Implements alvar::Capture.
Definition at line 104 of file CapturePluginHighgui.cpp.
std::string alvar::plugins::CaptureHighgui::SerializeId | ( | ) | [virtual] |
The identification of the class for serialization.
Implements alvar::Capture.
Definition at line 99 of file CapturePluginHighgui.cpp.
void alvar::plugins::CaptureHighgui::setResolution | ( | const unsigned long | xResolution, |
const unsigned long | yResolution | ||
) | [virtual] |
Set the resolution.
xResolution | The resolution along the x axis (horizontal). |
yResolution | The resolution along the y axis (vertical). |
Reimplemented from alvar::Capture.
Definition at line 44 of file CapturePluginHighgui.cpp.
bool alvar::plugins::CaptureHighgui::showSettingsDialog | ( | ) | [virtual] |
Show the settings dialog of the camera.
Implements alvar::Capture.
Definition at line 93 of file CapturePluginHighgui.cpp.
bool alvar::plugins::CaptureHighgui::start | ( | ) | [virtual] |
Starts the camera capture.
Implements alvar::Capture.
Definition at line 54 of file CapturePluginHighgui.cpp.
void alvar::plugins::CaptureHighgui::stop | ( | ) | [virtual] |
Stops the camera capture.
Implements alvar::Capture.
Definition at line 72 of file CapturePluginHighgui.cpp.
IplImage alvar::plugins::CaptureHighgui::mImage [private] |
Definition at line 82 of file CapturePluginHighgui.h.
cv::Mat alvar::plugins::CaptureHighgui::mMatrix [private] |
Definition at line 81 of file CapturePluginHighgui.h.
cv::VideoCapture alvar::plugins::CaptureHighgui::mVideoCapture [private] |
Definition at line 80 of file CapturePluginHighgui.h.