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

implementation of the loop More...

#include <FrameLoop.h>

Inheritance diagram for FrameLoopImpl:
Inheritance graph
Collaboration diagram for FrameLoopImpl:
Collaboration graph

Public Member Functions

void Loop (FrameSource *frameSource)
 forever (until frameSource ends) More...
 
void LoopUntilKeyPress (FrameSource *frameSource)
 stop on any key More...
 
void LoopNFrames (FrameSource *frameSource, int nFrames)
 read a fixed number of frames More...
 
void SingleFrame (FrameSource *frameSource)
 single frame More...
 
void WaitForFirstFrame ()
 for synchronisation between threads More...
 
void WaitForNextFrame ()
 for synchronisation between threads More...
 

Private Attributes

mhthreads::Condition newFrame
 
std::vector< RegionInforegions
 

Additional Inherited Members

- Protected Member Functions inherited from FrameObsSupport
void FireFrameNotification (IplImage *img, int frameNr) const
 
void FireRegionNotification (const std::vector< RegionInfo > &regions) const
 

Detailed Description

implementation of the loop

Warning
the Loop... and SingleFrame methods should be called by the same thread or extra serialization of calls has to be done.

Definition at line 89 of file FrameLoop.h.

Member Function Documentation

void FrameLoopImpl::Loop ( FrameSource frameSource)
virtual
void FrameLoopImpl::LoopNFrames ( FrameSource frameSource,
int  nFrames 
)
virtual
void FrameLoopImpl::LoopUntilKeyPress ( FrameSource frameSource)
virtual
void FrameLoopImpl::SingleFrame ( FrameSource frameSource)
virtual
void FrameLoopImpl::WaitForFirstFrame ( )
virtual

for synchronisation between threads

wait some minutes for camera init

Implements FrameLoop.

Definition at line 159 of file FrameLoop.h.

References MHDBGMSG, newFrame, and mhthreads::Condition::TimedWait().

void FrameLoopImpl::WaitForNextFrame ( )
virtual

for synchronisation between threads

wait some seconds - the computations may take quite long!

Implements FrameLoop.

Definition at line 168 of file FrameLoop.h.

References MHDBGMSG, MHDBGMSG_I, newFrame, and mhthreads::Condition::TimedWait().

Member Data Documentation

mhthreads::Condition FrameLoopImpl::newFrame
private
std::vector<RegionInfo> FrameLoopImpl::regions
private

Definition at line 91 of file FrameLoop.h.

Referenced by LoopUntilKeyPress(), and SingleFrame().


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


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