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

subimage matching More...

#include <FrameObserver.h>

Inheritance diagram for MatchObs:
Inheritance graph
Collaboration diagram for MatchObs:
Collaboration graph

Public Member Functions

 MatchObs (const char *defFileName)
 
void FrameNotify (IplImage *img, int frameNr)
 notification of a new frame More...
 
const char * GetName () const
 the name of the observer More...
 
void EnterCriticalSection ()
 
std::vector< ObjectPosition > & GetData ()
 
void LeaveCriticalSection ()
 
- 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

std::vector< GCPointer
< MatchImage > > 
matchers
 
mhthreads::Mutex mutex
 mutex for the result More...
 
std::vector< ObjectPositionlastResult
 the last result of the line finding algo More...
 

Detailed Description

subimage matching

Definition at line 215 of file FrameObserver.h.

Constructor & Destructor Documentation

MatchObs::MatchObs ( const char *  defFileName)

Definition at line 36 of file FrameObserver.cpp.

Member Function Documentation

void MatchObs::EnterCriticalSection ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 266 of file FrameObserver.h.

References mhthreads::Mutex::Enter(), and mutex.

void MatchObs::FrameNotify ( IplImage *  img,
int  frameNr 
)
virtual

notification of a new frame

Implements FrameObs.

Definition at line 226 of file FrameObserver.h.

References mhthreads::Mutex::Enter(), lastResult, mhthreads::Mutex::Leave(), matchers, MHDBGMSG, and mutex.

std::vector<ObjectPosition>& MatchObs::GetData ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 269 of file FrameObserver.h.

References lastResult.

const char* MatchObs::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 262 of file FrameObserver.h.

void MatchObs::LeaveCriticalSection ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 272 of file FrameObserver.h.

References mhthreads::Mutex::Leave(), and mutex.

Member Data Documentation

std::vector<ObjectPosition> MatchObs::lastResult
private

the last result of the line finding algo

Definition at line 222 of file FrameObserver.h.

Referenced by FrameNotify(), and GetData().

std::vector<GCPointer<MatchImage> > MatchObs::matchers
private

Definition at line 217 of file FrameObserver.h.

Referenced by FrameNotify().

mhthreads::Mutex MatchObs::mutex
private

mutex for the result

Definition at line 220 of file FrameObserver.h.

Referenced by EnterCriticalSection(), FrameNotify(), and LeaveCriticalSection().


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


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