ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
OpenCVFrameSource Class Reference

a FrameSource that wraps OpenCVs CvCapture More...

#include <OpenCVFrameSource.h>

Inheritance diagram for OpenCVFrameSource:
Inheritance graph
Collaboration diagram for OpenCVFrameSource:
Collaboration graph

Public Member Functions

 ~OpenCVFrameSource ()
 
IplImage * GetNextFrame ()
 
int GetFrameNr () const
 
double GetFPS () const
 frames per second More...
 
- Public Member Functions inherited from FrameSource
virtual ~FrameSource ()
 
virtual size_t GetNumInfos () const
 
virtual const RegionInfoGetInfo (size_t idx) const
 
- Public Member Functions inherited from ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void IncRefCount ()
 
void DecRefCount ()
 

Static Public Member Functions

static OpenCVFrameSourceCameraSourceFactory (int i)
 
static OpenCVFrameSourceFileSourceFactory (const char *fn)
 

Private Member Functions

 OpenCVFrameSource (CvCapture *c)
 

Private Attributes

CvCapture * capture
 
int n
 

Detailed Description

a FrameSource that wraps OpenCVs CvCapture

Definition at line 34 of file OpenCVFrameSource.h.

Constructor & Destructor Documentation

OpenCVFrameSource::OpenCVFrameSource ( CvCapture *  c)
private

Definition at line 37 of file OpenCVFrameSource.cpp.

References capture, and MHDBGMSG.

Referenced by CameraSourceFactory(), and FileSourceFactory().

OpenCVFrameSource::~OpenCVFrameSource ( )

Definition at line 46 of file OpenCVFrameSource.cpp.

References capture.

Member Function Documentation

OpenCVFrameSource * OpenCVFrameSource::CameraSourceFactory ( int  i)
static

Definition at line 62 of file OpenCVFrameSource.cpp.

References OpenCVFrameSource().

Referenced by main(), and SelectSourceInternal().

OpenCVFrameSource * OpenCVFrameSource::FileSourceFactory ( const char *  fn)
static

Definition at line 67 of file OpenCVFrameSource.cpp.

References OpenCVFrameSource().

Referenced by main(), and SelectSourceInternal().

double OpenCVFrameSource::GetFPS ( ) const
virtual

frames per second

Returns
-1 when unknown

Reimplemented from FrameSource.

Definition at line 47 of file OpenCVFrameSource.h.

References capture.

int OpenCVFrameSource::GetFrameNr ( ) const
virtual

Implements FrameSource.

Definition at line 44 of file OpenCVFrameSource.h.

References n.

IplImage * OpenCVFrameSource::GetNextFrame ( )
virtual
Returns
NULL when nothing to get

Implements FrameSource.

Definition at line 50 of file OpenCVFrameSource.cpp.

References capture, MHDBGMSG, and n.

Member Data Documentation

CvCapture* OpenCVFrameSource::capture
private

Definition at line 35 of file OpenCVFrameSource.h.

Referenced by GetFPS(), GetNextFrame(), OpenCVFrameSource(), and ~OpenCVFrameSource().

int OpenCVFrameSource::n
private

Definition at line 37 of file OpenCVFrameSource.h.

Referenced by GetFrameNr(), and GetNextFrame().


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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)