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

search for something in a bigger image More...

#include <Matcher.h>

Inheritance diagram for MatchImage:
Inheritance graph
Collaboration diagram for MatchImage:
Collaboration graph

Public Member Functions

 MatchImage (const char *targetName, const char *fileName, double t=0.995)
 
 MatchImage (const char *targetName, const char *fileName, int posX, int posY, int sizeX, int sizeY, double t=0.995)
 
virtual ~MatchImage ()
 
void Match (const IplImage *src)
 
const std::vector< CvPoint > & GetPoints () const
 
bool TargetFound () const
 
CvPoint GetRandomTarget () 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 ()
 

Private Attributes

IplImage * result
 
std::vector< CvPoint > points
 
double threshold
 

Additional Inherited Members

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

Detailed Description

search for something in a bigger image

intended for the use with a sequence of frames

the default threshold selects only IDENTICAL subimages

the resulting points represent the middle of the target (width/2,height/2). This is ok for text if all letters have the same height.

Definition at line 129 of file Matcher.h.

Constructor & Destructor Documentation

MatchImage::MatchImage ( const char *  targetName,
const char *  fileName,
double  t = 0.995 
)

Definition at line 140 of file Matcher.h.

MatchImage::MatchImage ( const char *  targetName,
const char *  fileName,
int  posX,
int  posY,
int  sizeX,
int  sizeY,
double  t = 0.995 
)

Definition at line 144 of file Matcher.h.

virtual MatchImage::~MatchImage ( )
virtual

Definition at line 150 of file Matcher.h.

References result.

Member Function Documentation

const std::vector<CvPoint>& MatchImage::GetPoints ( ) const

Definition at line 182 of file Matcher.h.

References points.

CvPoint MatchImage::GetRandomTarget ( ) const

Definition at line 190 of file Matcher.h.

References points.

void MatchImage::Match ( const IplImage *  src)
virtual

Implements MatchBase.

Definition at line 154 of file Matcher.h.

References MHDBGMSG, points, result, MatchBase::srcSize, MatchBase::target, and threshold.

bool MatchImage::TargetFound ( ) const
virtual

Implements MatchBase.

Definition at line 186 of file Matcher.h.

References points.

Member Data Documentation

std::vector<CvPoint> MatchImage::points
private

the points in the source image where target has been found

Definition at line 134 of file Matcher.h.

Referenced by GetPoints(), GetRandomTarget(), Match(), and TargetFound().

IplImage* MatchImage::result
private

the result image, one channel, 32f. 1=yes, 0=no

Definition at line 132 of file Matcher.h.

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

double MatchImage::threshold
private

threshold for the correlation

Definition at line 137 of file Matcher.h.

Referenced by Match().


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


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