#include <Camera.h>
Public Member Functions | |
Camera () | |
Default constructor. | |
~Camera () | |
Destructor, deallocates VideoCapture structs. | |
Camera (int argc, const char *argv[]) | |
Constructor with options. | |
virtual CameraVar * | getVar (void) |
Constructor with options. | |
virtual CameraPar * | getPar (void) |
Get parameters. | |
virtual ResourcePlate | getPlate () const |
Returns ResourcePlate. | |
virtual bool | getFrame (IplImage *&s, MipBaselib::Time &t) |
Gets last frame available from video stream (old version). | |
virtual bool | getFrame (cv::Mat &s, Time &t) |
Gets last frame available from video stream. | |
virtual bool | recordLastFrame () |
Records last frame available from video stream. | |
virtual bool | setResolution (double w, double h) |
Sets resolution for the video device. | |
virtual bool | setCodec (char *c) |
Sets codec for the video device. | |
virtual bool | setFrameRate (double fr) |
Sets frame rate for the video device. | |
virtual bool | setBrightness (double b) |
Sets brightness for the video device. | |
virtual bool | setContrast (double c) |
Sets contrast for the video device. | |
virtual bool | setSaturation (double s) |
Sets saturation for the video device. | |
virtual bool | setHue (double h) |
Sets hue for the video device. | |
virtual void | videoLoop () |
Video loop for acquisition thread. | |
virtual timeval | getTimeStamp () |
Protected Attributes | |
CameraOptions | _options |
CameraPar * | _par |
CameraVar * | _var |
CvCapture * | _cap |
cv::VideoCapture | _device |
cv::Mat | _image |
Abstract video camera.
CameraOptions MipResources::Camera::_options [protected] |
Options for the camera.
Reimplemented in MipResources::CameraCVD, and MipResources::CameraROS.