Image Utilities (IU)
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
Public Member Functions
iu::PGRSource Class Reference

The PGRSource class reads from PointGrey Firewire cameras. More...

#include <pgrsource.h>

Inheritance diagram for iu::PGRSource:
iu::VideoSource

Public Member Functions

 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...
 

Additional Inherited Members

- Protected Attributes inherited from iu::VideoSource
unsigned int width_
 
unsigned int height_
 
unsigned int frameNr_
 

Detailed Description

The PGRSource class reads from PointGrey Firewire cameras.

Constructor & Destructor Documentation

iu::PGRSource::PGRSource ( unsigned int  camId = 0,
bool  gray = true 
)

PGRSource constructor. Initialize the camera camId.

Parameters
camIdid of camera to initialize
grayif true, capture 8-bit grayscale, otherwise 24-bit RGB

Member Function Documentation

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

get image height

Returns
height

Implements iu::VideoSource.

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

get image width

Returns
width

Implements iu::VideoSource.


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