Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields

osgVideo::VideoSource Class Reference

Encapsulates a video camera. More...


Public Member Functions

 VideoSource (std::string configString="vc:0 640 30 yuv rgb 1 1", std::string calibrationFile="")
bool isValid (void)
int getFrame (unsigned char **image, timeval *timestamp)
 get a new frame and lock it

void releaseFrame (void)
 release the locked frame

int getWidth (void)
 get the frame width

int getHeight (void)
 get the frame height

int getOpenGLFormat (void)
 get the frame's OpenGL format

int getPixelFormat (void)
 get the frame's pixel format

int getDepth (void)
 get the frame's pixel depth

float getHorizontalFOV ()
 the Horizontal FOV of the calibrated camera

float getVerticalFOV ()
 the Vertical FOV of the calibrated camera


Detailed Description

encapsulates both VideoWrapper and AEL CamLib methods.


Constructor & Destructor Documentation

VideoSource::VideoSource std::string  configString = "vc:0 640 30 yuv rgb 1 1",
std::string  calibrationFile = ""
 

Initialize the camera

Parameters:
configString configuration string used by VideoWrapper. (e.g.: "vc:1 640 30 yuv rgb 1 1" )
calibrationFile the file that contains the camera calibration parameters. (e.g.: "Data/firei0003578.cam" )


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 12:22:38 2004 for osgAR by doxygen 1.3.7