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

find a contour in the image. More...

#include <Matcher.h>

Inheritance diagram for MatchContour:
Inheritance graph
Collaboration diagram for MatchContour:
Collaboration graph

Public Member Functions

 MatchContour (const char *targetName, const char *fileName)
 
 ~MatchContour ()
 
void Match (const IplImage *src)
 
bool TargetFound () const
 
- Public Member Functions inherited from MatchBase
 MatchBase (const char *targetName)
 
 MatchBase (const char *targetName, const char *fileName)
 
 MatchBase (const char *targetName, const char *fileName, int posX, int posY, int sizeX, int sizeY)
 
virtual ~MatchBase ()
 
const char * GetVisiconName () const
 
int GetWidth () const
 
int GetHeight () const
 
- Public Member Functions inherited from ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void IncRefCount ()
 
void DecRefCount ()
 

Static Private Member Functions

static void thres_cb (int newVal)
 

Private Attributes

double result
 
IplImage * cannyTarget
 
CvMemStorage * trgtStorage
 
CvSeq * trgtContour
 
IplImage * cannySrc
 
IplImage * forDisplay
 
CvMemStorage * storage
 
int cur_thres
 

Static Private Attributes

static const int MIN_THRES = 70
 
static const int MAX_THRES = 200
 

Additional Inherited Members

- Protected Member Functions inherited from MatchBase
 MatchBase ()
 
- Protected Attributes inherited from MatchBase
IplImage * target
 
CvSize srcSize
 
GCPointer< GCStringname
 

Detailed Description

find a contour in the image.

Source needs to be gray scale image

Todo:
memory!!
Todo:
doesn't really work!

Definition at line 262 of file Matcher.h.

Constructor & Destructor Documentation

MatchContour::MatchContour ( const char *  targetName,
const char *  fileName 
)
MatchContour::~MatchContour ( )

Definition at line 301 of file Matcher.h.

References cannySrc, cannyTarget, forDisplay, GCString::GetString(), and MatchBase::name.

Member Function Documentation

void MatchContour::Match ( const IplImage *  src)
virtual
bool MatchContour::TargetFound ( ) const
virtual

Implements MatchBase.

Definition at line 367 of file Matcher.h.

static void MatchContour::thres_cb ( int  newVal)
staticprivate

Definition at line 280 of file Matcher.h.

Referenced by MatchContour().

Member Data Documentation

IplImage* MatchContour::cannySrc
private

Definition at line 269 of file Matcher.h.

Referenced by Match(), and ~MatchContour().

IplImage* MatchContour::cannyTarget
private

Definition at line 265 of file Matcher.h.

Referenced by MatchContour(), and ~MatchContour().

int MatchContour::cur_thres
private

Definition at line 278 of file Matcher.h.

Referenced by Match(), and MatchContour().

IplImage* MatchContour::forDisplay
private

Definition at line 271 of file Matcher.h.

Referenced by Match(), and ~MatchContour().

const int MatchContour::MAX_THRES = 200
staticprivate

Definition at line 276 of file Matcher.h.

const int MatchContour::MIN_THRES = 70
staticprivate

Definition at line 275 of file Matcher.h.

double MatchContour::result
private

Definition at line 263 of file Matcher.h.

Referenced by Match().

CvMemStorage* MatchContour::storage
private

Definition at line 273 of file Matcher.h.

Referenced by Match(), and MatchContour().

CvSeq* MatchContour::trgtContour
private

Definition at line 267 of file Matcher.h.

Referenced by Match(), and MatchContour().

CvMemStorage* MatchContour::trgtStorage
private

Definition at line 266 of file Matcher.h.

Referenced by MatchContour().


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


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