The PGRSource class reads from PointGrey Firewire cameras.
More...
#include <pgrsource.h>
|
| PGRSource (unsigned int camId=0, bool gray=true) |
| PGRSource constructor. Initialize the camera camId . More...
|
|
cv::Mat | getImage () |
| grab a new image from the camera. If a new image is not available, block until there is one. If getImage is called in a loop and the camera delivers e.g. 30fps, you will get at most 30 loop iterations per second. More...
|
|
unsigned int | getWidth () |
| get image width More...
|
|
unsigned int | getHeight () |
| get image height More...
|
|
unsigned int | getCurrentFrameNr () |
| get frame index. Upon camera initilaization, the counter is set to 0 More...
|
|
|
unsigned int | width_ |
|
unsigned int | height_ |
|
unsigned int | frameNr_ |
|
The PGRSource class reads from PointGrey Firewire cameras.
iu::PGRSource::PGRSource |
( |
unsigned int |
camId = 0 , |
|
|
bool |
gray = true |
|
) |
| |
PGRSource constructor. Initialize the camera camId
.
- Parameters
-
camId | id of camera to initialize |
gray | if true, capture 8-bit grayscale, otherwise 24-bit RGB |
unsigned int iu::PGRSource::getCurrentFrameNr |
( |
| ) |
|
|
inlinevirtual |
get frame index. Upon camera initilaization, the counter is set to 0
- Returns
Implements iu::VideoSource.
unsigned int iu::PGRSource::getHeight |
( |
| ) |
|
|
inlinevirtual |
cv::Mat iu::PGRSource::getImage |
( |
| ) |
|
|
virtual |
grab a new image from the camera. If a new image is not available, block until there is one. If getImage is called in a loop and the camera delivers e.g. 30fps, you will get at most 30 loop iterations per second.
- Returns
- cv::Mat
Implements iu::VideoSource.
unsigned int iu::PGRSource::getWidth |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file:
- /home/christian/workdir/postdoc/projects/mobile-vision-private/software/libs/mobilevision/imageutilities/include/iu/iuio/pgrsource.h