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

optical flow (observer version) More...

#include <FrameObserver.h>

Inheritance diagram for OFlowObs:
Inheritance graph
Collaboration diagram for OFlowObs:
Collaboration graph

Public Member Functions

 OFlowObs ()
 
void FrameNotifyGray (IplImage *img, IplImage *gray, int frameNr)
 override me More...
 
void FocusNotify (const CvPoint &p)
 
const char * GetResult () const
 the current vision More...
 
const char * GetName () const
 the name of the observer More...
 
const char * GetTypeName () const
 the type of vision More...
 
- Public Member Functions inherited from FrameObsAutoGray
 FrameObsAutoGray ()
 
 ~FrameObsAutoGray ()
 
void FrameNotify (IplImage *img, int frameNr)
 notification of a new frame 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 ()
 
- Public Member Functions inherited from FocusObserver
virtual ~FocusObserver ()
 
- Public Member Functions inherited from ActCvObsSupport
void AddObserver (ActCvObserver *obs)
 add obs to the list of observers More...
 
void RemoveObserver (ActCvObserver *obs)
 remove obs from the list of observers More...
 

Private Attributes

OpticalFlow oFlow
 
ExpGlaett< double > flowWinkel
 
GCPointer< FrameObswin
 
std::string curResult
 

Additional Inherited Members

- Protected Member Functions inherited from ActCvObsSupport
void FireVisionNotification (const ActCvSource &src)
 call NewVisionNotification on all observers More...
 
- Private Member Functions inherited from ImageCopy
 ImageCopy (int divi=1)
 
 ~ImageCopy ()
 
IplImage * GetCurCopy ()
 
IplImage * GetCopy (IplImage *img, int frameNr)
 

Detailed Description

optical flow (observer version)

Definition at line 667 of file FrameObserver.h.

Constructor & Destructor Documentation

OFlowObs::OFlowObs ( )

Definition at line 676 of file FrameObserver.h.

References GetName(), and win.

Member Function Documentation

void OFlowObs::FocusNotify ( const CvPoint &  p)
virtual

Implements FocusObserver.

Definition at line 711 of file FrameObserver.h.

References OpticalFlow::FocusNotify(), and oFlow.

void OFlowObs::FrameNotifyGray ( IplImage *  img,
IplImage *  gray,
int  frameNr 
)
virtual
const char* OFlowObs::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 717 of file FrameObserver.h.

Referenced by OFlowObs().

const char* OFlowObs::GetResult ( ) const
virtual

the current vision

must return an s-expression

Implements ActCvSource.

Definition at line 714 of file FrameObserver.h.

References curResult.

const char* OFlowObs::GetTypeName ( ) const
virtual

the type of vision

must be a single word, no spaces allowed

is used to distinguish between sources and to build up an s-expression with multiple vision types

could be described in short as the "LISP name"

i.e. "lines", "flowangle"

Implements ActCvSource.

Definition at line 720 of file FrameObserver.h.

Member Data Documentation

std::string OFlowObs::curResult
private

Definition at line 674 of file FrameObserver.h.

Referenced by FrameNotifyGray(), and GetResult().

ExpGlaett<double> OFlowObs::flowWinkel
private

Definition at line 670 of file FrameObserver.h.

Referenced by FrameNotifyGray().

OpticalFlow OFlowObs::oFlow
private

Definition at line 669 of file FrameObserver.h.

Referenced by FocusNotify(), and FrameNotifyGray().

GCPointer<FrameObs> OFlowObs::win
private

Definition at line 672 of file FrameObserver.h.

Referenced by FrameNotifyGray(), and OFlowObs().


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


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