Class representing VideoSource.
More...
#include <VideoSource.h>
|
static bool | checkCamera (int camid) |
| This static function is used to check if camera with given ID is available.
|
|
|
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.
|
|
Class representing VideoSource.
ImageFilterNode::VideoSource::VideoSource |
( |
int |
camid | ) |
|
Constructor of the VideoSource class.
Public Constructors.
- Parameters
-
camid | The camid is used to setup VideoCapture. The camid says which cam should be used |
Constructor of the VideoSource class.
- Parameters
-
camid | The camid is used to setup VideoCapture. The camid says which cam should be used |
ImageFilterNode::VideoSource::~VideoSource |
( |
| ) |
|
bool ImageFilterNode::VideoSource::checkCamera |
( |
int |
camid | ) |
|
|
static |
This static function is used to check if camera with given ID is available.
- Parameters
-
The | camid 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
-
The | colorImage |
The | rawImage |
bool ImageFilterNode::VideoSource::isCamAvailable |
( |
| ) |
|
- Returns
- True if Camera is Opened
-
True if Camera is available
double ImageFilterNode::VideoSource::getFPS |
( |
| ) |
|
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: