![]() |
My Project
|
Capture interface that plugins must implement. More...
#include <Capture.h>
Public Member Functions | |
Capture (const CaptureDevice captureDevice) | |
Constructor. More... | |
virtual | ~Capture () |
Destructor. | |
CaptureDevice | captureDevice () |
The camera information associated to this capture object. | |
unsigned long | xResolution () |
The resolution along the x axis (horizontal). | |
unsigned long | yResolution () |
The resolution along the y axis (vertical). | |
bool | isCapturing () |
Test if the camera was properly initialized. | |
virtual void | setResolution (const unsigned long xResolution, const unsigned long yResolution) |
Set the resolution. More... | |
virtual bool | start ()=0 |
Starts the camera capture. More... | |
virtual void | stop ()=0 |
Stops the camera capture. | |
virtual cv::Mat | captureImage ()=0 |
Capture one image from the camera. More... | |
virtual bool | saveSettings (std::string filename) |
Save camera settings to a file. More... | |
virtual bool | loadSettings (std::string filename) |
Load camera settings from a file. More... | |
virtual bool | showSettingsDialog ()=0 |
Show the settings dialog of the camera. More... | |
virtual std::string | SerializeId ()=0 |
The identification of the class for serialization. | |
virtual bool | Serialize (Serialization *serialization)=0 |
Performs serialization of the class members and configuration. More... | |
Protected Attributes | |
CaptureDevice | mCaptureDevice |
unsigned long | mXResolution |
unsigned long | mYResolution |
bool | mIsCapturing |
Capture interface that plugins must implement.
All plugins must implement the Capture interface. This is the class that implements all of the camera capture funtionality. This class is created by the CapturePlugin implementation.
|
inline |
|
pure virtual |
Capture one image from the camera.
Do not modify this image.
Implemented in CapturePtgrey, CaptureHighgui, CaptureFile, CaptureDSCapture, and CaptureCmu.
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Performs serialization of the class members and configuration.
serialization | The Serialization object. |
Implemented in CapturePtgrey, CaptureHighgui, CaptureFile, CaptureDSCapture, and CaptureCmu.
|
inlinevirtual |
Set the resolution.
xResolution | The resolution along the x axis (horizontal). |
yResolution | The resolution along the y axis (vertical). |
Reimplemented in CaptureHighgui.
|
pure virtual |
Show the settings dialog of the camera.
Implemented in CapturePtgrey, CaptureHighgui, CaptureFile, CaptureDSCapture, and CaptureCmu.
|
pure virtual |
Starts the camera capture.
Implemented in CapturePtgrey, CaptureHighgui, CaptureFile, CaptureDSCapture, and CaptureCmu.