FlyCaptureVideoSource Class Reference
[Videosource: Video acquisition abstraction]

#include <flycapturevs.h>

Inheritance diagram for FlyCaptureVideoSource:

Inheritance graph
[legend]
Collaboration diagram for FlyCaptureVideoSource:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FlyCaptureVideoSource ()
virtual bool initialize ()
 initialized the video source.
virtual bool getFrame (IplImage *dst)
 get the next frame and convert it to the format described in "dst".
void getSize (int &width, int &height)
 return width and height of images coming from the video source.
virtual ~FlyCaptureVideoSource ()
virtual void start ()
 Start the video source: getFrame() will provide each time a different image.
virtual void stop ()
 Pause the source.
virtual bool isPlaying ()
 return false if the source is paused.
virtual const char * getStreamName () const
 Returns a string describing the stream.
virtual const char * getStreamType () const
 Returns a string describing the type of the stream.


Detailed Description

Basic support for Pointgrey's flycapture API. Possibly outdated.

Definition at line 10 of file flycapturevs.h.


Constructor & Destructor Documentation

FlyCaptureVideoSource::FlyCaptureVideoSource (  ) 

Definition at line 22 of file flycapturevs.cpp.

FlyCaptureVideoSource::~FlyCaptureVideoSource (  )  [virtual]

Definition at line 115 of file flycapturevs.cpp.


Member Function Documentation

bool FlyCaptureVideoSource::getFrame ( IplImage *  dst  )  [virtual]

get the next frame and convert it to the format described in "dst".

The image will be deinterlaced, scaled, and color converted to match dst.

Parameters:
dst the image to copy the frame into.
Returns:
true on success, false on error.

Implements VideoSource.

Definition at line 81 of file flycapturevs.cpp.

void FlyCaptureVideoSource::getSize ( int &  width,
int &  height 
) [virtual]

return width and height of images coming from the video source.

Implements VideoSource.

Definition at line 134 of file flycapturevs.cpp.

virtual const char* FlyCaptureVideoSource::getStreamName (  )  const [inline, virtual]

Returns a string describing the stream.

If the source comes from a file, the filename is returned.

Implements VideoSource.

Definition at line 23 of file flycapturevs.h.

virtual const char* FlyCaptureVideoSource::getStreamType (  )  const [inline, virtual]

Returns a string describing the type of the stream.

For example: BmpFile, AviFile, DShowCB...

Implements VideoSource.

Definition at line 24 of file flycapturevs.h.

bool FlyCaptureVideoSource::initialize (  )  [virtual]

initialized the video source.

Has to be called before any other method.

Returns:
true on success, false on error.

Get one image to have the size

Implements VideoSource.

Definition at line 32 of file flycapturevs.cpp.

Referenced by FlyCaptureFactory::construct().

virtual bool FlyCaptureVideoSource::isPlaying (  )  [inline, virtual]

return false if the source is paused.

Implements VideoSource.

Definition at line 22 of file flycapturevs.h.

void FlyCaptureVideoSource::start (  )  [virtual]

Start the video source: getFrame() will provide each time a different image.

After calling initialize(), the video source is playing.

Implements VideoSource.

Definition at line 126 of file flycapturevs.cpp.

void FlyCaptureVideoSource::stop (  )  [virtual]

Pause the source.

The getFrame() method will always provide the current frame.

Implements VideoSource.

Definition at line 130 of file flycapturevs.cpp.


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

Generated on Tue Mar 30 15:53:25 2010 for Polyora by  doxygen 1.5.9