101     return "CaptureHighgui";
   124     cv::VideoCapture videoCapture;
   131         videoCapture.open(
id);
   132         if (videoCapture.isOpened()) {
   133             int width = (int)videoCapture.get(CV_CAP_PROP_FRAME_WIDTH);
   134             int height = (int)videoCapture.get(CV_CAP_PROP_FRAME_HEIGHT);
   135             if (width > 0 && height > 0) {
   136                 devices.push_back(captureDevice);
   148     videoCapture.release();
 CaptureHighgui(const CaptureDevice captureDevice)
Constructor. 
CapturePluginHighgui(const std::string &captureType)
Constructor. 
This file implements a capture plugin based on Highgui. 
Implementation of Capture interface for Highgui plugin. 
CaptureDevice captureDevice()
The camera information associated to this capture object. 
~CapturePluginHighgui()
Destructor. 
void setResolution(const unsigned long xResolution, const unsigned long yResolution)
Set the resolution. 
unsigned long mXResolution
unsigned long xResolution()
The resolution along the x axis (horizontal). 
~CaptureHighgui()
Destructor. 
unsigned long yResolution()
The resolution along the y axis (vertical). 
bool showSettingsDialog()
Show the settings dialog of the camera. 
CaptureDevice holder for camera information. 
bool Serialize(Serialization *serialization)
Performs serialization of the class members and configuration. 
Capture * createCapture(const CaptureDevice captureDevice)
Create Capture class. Transfers onwership to the caller. 
void registerPlugin(const std::string &captureType, alvar::CapturePlugin *&capturePlugin)
CapturePlugin interface that plugins must implement. 
CaptureDeviceVector enumerateDevices()
Enumerate capture devices currently available. 
void stop()
Stops the camera capture. 
IplImage * captureImage()
Capture one image from the camera. 
bool isCapturing()
Test if the camera was properly initialized. 
Capture interface that plugins must implement. 
std::string SerializeId()
The identification of the class for serialization. 
void convert(const A &a, B &b)
Class for serializing class content to/from file or std::iostream. 
cv::VideoCapture mVideoCapture
std::vector< CaptureDevice > CaptureDeviceVector
Vector of CaptureDevices. 
bool start()
Starts the camera capture. 
unsigned long mYResolution