Frapper  1.0a
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ImageFilterNode::VideoSource Class Reference

Class representing VideoSource. More...

#include <VideoSource.h>

Public Member Functions

 VideoSource (int camid)
 Constructor of the VideoSource class.
 
 ~VideoSource ()
 Destructor of the VideoSource class.
 
Mat getNewColorImage ()
 Is used to get a actual Mat from the camera.
 
Mat getNewGrayImage ()
 Is used to grab a newGrayFrame from the camera.
 
Mat getNewRawImage ()
 Is used to grab a RawImage from the camera.
 
void getRawAndColorImage (Mat &colorimage, Mat &raw)
 Is used to grab a colorImage and a RawImage.
 
bool isCamAvailable ()
 
double getFPS ()
 

Static Public Member Functions

static bool checkCamera (int camid)
 This static function is used to check if camera with given ID is available.
 

Private Attributes

Mat newColorFrame
 Is used to store the grabbed ColorImage from cam.
 
Mat newGrayFrame
 Is used to store the grabbed GrayImage from cam.
 
Mat newRawFrame
 Is used to store the grabbed newRawFrame from cam.
 
VideoCapture * cap
 Reference to the VideoCapture.
 
bool camAvailable
 Is used to set if Camera can be accessed.
 

Detailed Description

Class representing VideoSource.

Constructor & Destructor Documentation

ImageFilterNode::VideoSource::VideoSource ( int  camid)

Constructor of the VideoSource class.

Public Constructors.

Parameters
camidThe camid is used to setup VideoCapture. The camid says which cam should be used

Constructor of the VideoSource class.

Parameters
camidThe camid is used to setup VideoCapture. The camid says which cam should be used
ImageFilterNode::VideoSource::~VideoSource ( )

Destructor of the VideoSource class.

Member Function Documentation

bool ImageFilterNode::VideoSource::checkCamera ( int  camid)
static

This static function is used to check if camera with given ID is available.

Parameters
Thecamid to check if available
Returns
true if Camera with ID i is available
Mat ImageFilterNode::VideoSource::getNewColorImage ( )

Is used to get a actual Mat from the camera.

Is used to grab a ColorImage from the camera.

Returns
Mat New Mat from the camera. The returned matrix has 4 Channels (=BGRA)
Mat newColorFrame from the camera. The returned matrix has 4 Channels (=BGRA)
Mat ImageFilterNode::VideoSource::getNewGrayImage ( )

Is used to grab a newGrayFrame from the camera.

Is used to grab a GrayImage from the camera.

Returns
Mat newGrayMat from the camera. The returned matrix has 1 Channel
Mat newGrayFrame from the camera. The returned matrix has 1 Channel
Mat ImageFilterNode::VideoSource::getNewRawImage ( )

Is used to grab a RawImage from the camera.

Returns
Mat newRawFrame from the camera.
void ImageFilterNode::VideoSource::getRawAndColorImage ( Mat &  colorimage,
Mat &  raw 
)

Is used to grab a colorImage and a RawImage.

Parameters
ThecolorImage
TherawImage
bool ImageFilterNode::VideoSource::isCamAvailable ( )
Returns
True if Camera is Opened
True if Camera is available
double ImageFilterNode::VideoSource::getFPS ( )

Member Data Documentation

Mat ImageFilterNode::VideoSource::newColorFrame
private

Is used to store the grabbed ColorImage from cam.

Mat ImageFilterNode::VideoSource::newGrayFrame
private

Is used to store the grabbed GrayImage from cam.

Mat ImageFilterNode::VideoSource::newRawFrame
private

Is used to store the grabbed newRawFrame from cam.

VideoCapture* ImageFilterNode::VideoSource::cap
private

Reference to the VideoCapture.

bool ImageFilterNode::VideoSource::camAvailable
private

Is used to set if Camera can be accessed.


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