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

find lines in the video frames More...

#include <FrameObserver.h>

Inheritance diagram for LineObs:
Inheritance graph
Collaboration diagram for LineObs:
Collaboration graph

Public Member Functions

 LineObs ()
 
 LineObs (const LineObs &lo)
 
LineObsoperator= (const LineObs &lo)
 
 ~LineObs ()
 
void FrameNotifyGray (IplImage *img, IplImage *gray, int frameNr)
 override me More...
 
const char * GetName () const
 the name of the observer More...
 
void EnterCriticalSection ()
 
std::vector< Line > & GetData ()
 
void LeaveCriticalSection ()
 
- 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 ()
 

Protected Attributes

mhthreads::Mutex mutex
 mutex for the result More...
 
std::vector< LinelastResult
 the last result of the line finding algo More...
 

Private Attributes

IplImage * canny
 
CvMemStorage * storage
 
GCPointer< FrameObswin
 

Additional Inherited Members

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

Detailed Description

find lines in the video frames

Todo:

encapsulate the mutex and the result

only calc lines on demand?

Definition at line 747 of file FrameObserver.h.

Constructor & Destructor Documentation

LineObs::LineObs ( )

Definition at line 755 of file FrameObserver.h.

References MHDBGMSG, and win.

LineObs::LineObs ( const LineObs lo)

Definition at line 760 of file FrameObserver.h.

References MHDBGMSG, and win.

LineObs::~LineObs ( )

Definition at line 769 of file FrameObserver.h.

References canny, MHDBGMSG, storage, and win.

Member Function Documentation

void LineObs::EnterCriticalSection ( )
virtual

Implements ResultSource< Line >.

Definition at line 816 of file FrameObserver.h.

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

void LineObs::FrameNotifyGray ( IplImage *  img,
IplImage *  gray,
int  frameNr 
)
virtual
std::vector<Line>& LineObs::GetData ( )
virtual

Implements ResultSource< Line >.

Definition at line 819 of file FrameObserver.h.

References lastResult.

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

void LineObs::LeaveCriticalSection ( )
virtual

Implements ResultSource< Line >.

Definition at line 822 of file FrameObserver.h.

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

LineObs& LineObs::operator= ( const LineObs lo)

Definition at line 764 of file FrameObserver.h.

References canny, and storage.

Member Data Documentation

IplImage* LineObs::canny
private

Definition at line 749 of file FrameObserver.h.

Referenced by FrameNotifyGray(), operator=(), and ~LineObs().

std::vector<Line> LineObs::lastResult
protected

the last result of the line finding algo

Definition at line 813 of file FrameObserver.h.

Referenced by FrameNotifyGray(), and GetData().

mhthreads::Mutex LineObs::mutex
protected

mutex for the result

Definition at line 811 of file FrameObserver.h.

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

CvMemStorage* LineObs::storage
private

Definition at line 750 of file FrameObserver.h.

Referenced by FrameNotifyGray(), operator=(), and ~LineObs().

GCPointer<FrameObs> LineObs::win
private

Definition at line 752 of file FrameObserver.h.

Referenced by FrameNotifyGray(), LineObs(), and ~LineObs().


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


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