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

calculate the current frame rate More...

#include <FrameObserver.h>

Inheritance diagram for FpsFrameObs:
Inheritance graph
Collaboration diagram for FpsFrameObs:
Collaboration graph

Public Member Functions

 FpsFrameObs ()
 
void FrameNotify (IplImage *img, int frameNr)
 notification of a new frame More...
 
const char * GetName () const
 the name of the observer More...
 
- Public Member Functions inherited from FrameObs
virtual void RegionInfoNotify (const std::vector< RegionInfo > &regions)
 
- Public Member Functions inherited from ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void IncRefCount ()
 
void DecRefCount ()
 

Private Attributes

RundenZeitenClock zeiten
 
ExpGlaett< float > fps
 

Detailed Description

calculate the current frame rate

Definition at line 134 of file FrameObserver.h.

Constructor & Destructor Documentation

FpsFrameObs::FpsFrameObs ( )

Definition at line 138 of file FrameObserver.h.

Member Function Documentation

void FpsFrameObs::FrameNotify ( IplImage *  img,
int  frameNr 
)
virtual
const char* FpsFrameObs::GetName ( ) const
virtual

the name of the observer

This is used to avoid that two instances of the same observer class are added to the observer list.

See Also
FrameLoop

Implements FrameObs.

Definition at line 152 of file FrameObserver.h.

Member Data Documentation

ExpGlaett<float> FpsFrameObs::fps
private

Definition at line 136 of file FrameObserver.h.

Referenced by FrameNotify().

RundenZeitenClock FpsFrameObs::zeiten
private

Definition at line 135 of file FrameObserver.h.

Referenced by FrameNotify().


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


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