ACT-CV - Machine Vision for Cognitive Modeling
|
implementation of the loop More...
#include <FrameLoop.h>
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< RegionInfo > | regions |
Additional Inherited Members | |
Protected Member Functions inherited from FrameObsSupport | |
void | FireFrameNotification (IplImage *img, int frameNr) const |
void | FireRegionNotification (const std::vector< RegionInfo > ®ions) const |
implementation of the loop
Definition at line 89 of file FrameLoop.h.
|
virtual |
forever (until frameSource ends)
Implements FrameLoop.
Definition at line 94 of file FrameLoop.h.
References FrameObsSupport::FireFrameNotification(), FrameSource::GetFrameNr(), FrameSource::GetNextFrame(), MHDBGMSG, newFrame, mhthreads::Condition::Signal(), and WAIT_TIME.
|
virtual |
read a fixed number of frames
Implements FrameLoop.
Definition at line 123 of file FrameLoop.h.
References FrameObsSupport::FireFrameNotification(), FrameSource::GetFrameNr(), FrameSource::GetNextFrame(), newFrame, mhthreads::Condition::Signal(), and WAIT_TIME.
|
virtual |
stop on any key
Implements FrameLoop.
Definition at line 104 of file FrameLoop.h.
References FrameObsSupport::FireFrameNotification(), FrameObsSupport::FireRegionNotification(), FrameSource::GetFrameNr(), FrameSource::GetInfo(), FrameSource::GetNextFrame(), FrameSource::GetNumInfos(), newFrame, regions, mhthreads::Condition::Signal(), and WAIT_TIME.
|
virtual |
single frame
Implements FrameLoop.
Definition at line 132 of file FrameLoop.h.
References FrameObsSupport::FireFrameNotification(), FrameObsSupport::FireRegionNotification(), FrameSource::GetFrameNr(), FrameSource::GetInfo(), FrameSource::GetNextFrame(), FrameSource::GetNumInfos(), MHDBGMSG, MHDBGMSG_P, newFrame, regions, and mhthreads::Condition::Signal().
|
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().
|
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().
|
private |
Definition at line 90 of file FrameLoop.h.
Referenced by Loop(), LoopNFrames(), LoopUntilKeyPress(), SingleFrame(), WaitForFirstFrame(), and WaitForNextFrame().
|
private |
Definition at line 91 of file FrameLoop.h.
Referenced by LoopUntilKeyPress(), and SingleFrame().