ACT-CV - Machine Vision for Cognitive Modeling
|
search for something in a bigger image More...
#include <Matcher.h>
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< GCString > | name |
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.
MatchImage::MatchImage | ( | const char * | targetName, |
const char * | fileName, | ||
double | t = 0.995 |
||
) |
MatchImage::MatchImage | ( | const char * | targetName, |
const char * | fileName, | ||
int | posX, | ||
int | posY, | ||
int | sizeX, | ||
int | sizeY, | ||
double | t = 0.995 |
||
) |
|
virtual |
const std::vector<CvPoint>& MatchImage::GetPoints | ( | ) | const |
CvPoint MatchImage::GetRandomTarget | ( | ) | const |
|
virtual |
Implements MatchBase.
Definition at line 154 of file Matcher.h.
References MHDBGMSG, points, result, MatchBase::srcSize, MatchBase::target, and threshold.
|
virtual |
|
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().
|
private |
the result image, one channel, 32f. 1=yes, 0=no
Definition at line 132 of file Matcher.h.
Referenced by Match(), and ~MatchImage().
|
private |