MipResources::Camera Class Reference
[CameraImu sensor]

abstract Camera class. More...

#include <Camera.h>

Inheritance diagram for MipResources::Camera:

MipResources::Resource MIPObject MipResources::CameraCVD MipResources::CameraROS

List of all members.

Public Member Functions

 Camera ()
 Default constructor.
 ~Camera ()
 Destructor, deallocates VideoCapture structs.
 Camera (int argc, const char *argv[])
 Constructor with options.
virtual CameraVargetVar (void)
 Constructor with options.
virtual CameraPargetPar (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


Detailed Description

abstract Camera class.

Abstract video camera.

Note:
This class is based on OpenCV Open Source libraries (Lorenzo Rosa Lorenzo Rosa todo 196 Luca Ricci todo 242

Member Data Documentation

Options for the camera.

Reimplemented in MipResources::CameraCVD, and MipResources::CameraROS.


The documentation for this class was generated from the following files:

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6