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

color matching More...

#include <FrameObserver.h>

Inheritance diagram for ColorObs:
Inheritance graph
Collaboration diagram for ColorObs:
Collaboration graph

Public Member Functions

 ColorObs (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

mhthreads::Mutex mutex
 mutex for the result More...
 
std::vector< ObjectPositionlastResult
 the last result of the line finding algo More...
 
GCPointer< FrameObswin
 output window More...
 
std::vector< float > means
 BGRA! More...
 
std::vector< float > sd
 

Additional Inherited Members

- Private Member Functions inherited from ImageCopy
 ImageCopy (int divi=1)
 
 ~ImageCopy ()
 
IplImage * GetCurCopy ()
 
IplImage * GetCopy (IplImage *img, int frameNr)
 

Detailed Description

color matching

Definition at line 319 of file FrameObserver.h.

Constructor & Destructor Documentation

ColorObs::ColorObs ( const char *  defFileName)

Definition at line 63 of file FrameObserver.cpp.

References means, and sd.

Member Function Documentation

void ColorObs::EnterCriticalSection ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 392 of file FrameObserver.h.

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

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

notification of a new frame

Implements FrameObs.

Definition at line 337 of file FrameObserver.h.

References FrameObs::FrameNotify(), ImageCopy::GetCopy(), means, sd, and win.

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

Implements ResultSource< ObjectPosition >.

Definition at line 395 of file FrameObserver.h.

References lastResult.

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

void ColorObs::LeaveCriticalSection ( )
virtual

Implements ResultSource< ObjectPosition >.

Definition at line 398 of file FrameObserver.h.

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

Member Data Documentation

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

the last result of the line finding algo

Definition at line 325 of file FrameObserver.h.

Referenced by GetData().

std::vector<float> ColorObs::means
private

BGRA!

Definition at line 331 of file FrameObserver.h.

Referenced by ColorObs(), and FrameNotify().

mhthreads::Mutex ColorObs::mutex
private

mutex for the result

Definition at line 323 of file FrameObserver.h.

Referenced by EnterCriticalSection(), and LeaveCriticalSection().

std::vector<float> ColorObs::sd
private

Definition at line 332 of file FrameObserver.h.

Referenced by ColorObs(), and FrameNotify().

GCPointer<FrameObs> ColorObs::win
private

output window

Definition at line 328 of file FrameObserver.h.

Referenced by FrameNotify().


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


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