Leaper Vision Toolkit
中文 / English 2.x
LMatchResult Class Reference
Inheritance diagram for LMatchResult:
ILMatchResult ILDrawable ILSortable ILObject

Additional Inherited Members

- Public Member Functions inherited from ILMatchResult
void Draw (HDC hdc, LPVPatDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY)
 
ILPointsGetFeature (int level)
 
ILRectGetRect ()
 
LArray< ILPolygon * > GetShape (int level)
 
void Set (ILMatch *matchObject, double patX, double patY, double patAngle, double patScale, double patScore)
 
- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 
- Public Member Functions inherited from ILDrawable
void SetBrushColor (COLORREF color)
 
void SetDrawName (BOOL val)
 
void SetDrawPoint (int size, LPVPointShape shape)
 
void SetFont (LString family, int fontSize, COLORREF color, BOOL bold, BOOL italic, BOOL underline, BOOL strikeOut)
 
void SetFontColor (COLORREF color)
 
void SetFontFamily (LString family)
 
void SetFontHeight (int fontSize)
 
void SetPen (LPVPenStyle style, int penSize, COLORREF color)
 
void SetPenColor (COLORREF color)
 
void SetPenStyle (LPVPenStyle style)
 
void SetPenWidth (int penSize)
 
- Public Member Functions inherited from ILSortable
double GetPosX (LPVPositionMode posMode)
 
double GetPosY (LPVPositionMode posMode)
 
double GetScore ()
 
- Properties inherited from ILMatchResult
double Angle [get]
 The angle of the result, in range of (-180, 180)
 
ILPoint Center [get]
 The center point of the result.
 
double GrayScore [get]
 The gray score of the result. Note: The gray score is always 0 when GrayValueWeight is set to 0.
 
double Scale [get]
 The scale of the result, in range of (0.5, 1.5) means 50% ~ 150% scaled based on the template.
 
double ScaleX [get]
 The x-coordinate scale of the result, in range of (0.5, 1.5) means 50% ~ 150% scaled based on the template.
For isotropic scaling, ScaleX and ScaleY are the same. For anisotropic scaling, Scale is the averaging of ScaleX and ScaleY.
 
double ScaleY [get]
 The y-coordinate scale of the result, in range of (0.5, 1.5) means 50% ~ 150% scaled based on the template.
For isotropic scaling, ScaleX and ScaleY are the same. For anisotropic scaling, Scale is the averaging of ScaleX and ScaleY.
 
double Score [get]
 The score of the result.
 
double ShapeScore [get]
 The shape score of the result.
 
- Properties inherited from ILObject
LString Name [get, set]
 Name of the object. By default, the object has no name.
In most cases, LPV classes don't make use of the names.
The name is drawn on canvas around the object if ILDrawable::SetDrawName() is enabled. More...
 
- Properties inherited from ILDrawable
COLORREF BrushColor [get, set]
 The brush color used to fill an object path. More...
 
BOOL DrawName [get, set]
 Whether to draw the object's name on the canvas. More...
 
BOOL FontBold [get, set]
 Whether the drawn text is bold. More...
 
COLORREF FontColor [get, set]
 The color of the drawn text. More...
 
LString FontFamily [get, set]
 The typeface name of the font used for drawing text, e.g. "Arial", "Tahoma", "Sans-Serif". More...
 
int FontHeight [get, set]
 The height, in logical units, of the font's character cell or character. More...
 
BOOL FontItalic [get, set]
 Whether the drawn text is italic. More...
 
BOOL FontStrikeOut [get, set]
 Whether the drawn text is strike-through. More...
 
BOOL FontUnderline [get, set]
 Whether the drawn text is underlined. More...
 
COLORREF PenColor [get, set]
 The pen color used for drawing an object path. More...
 
LPVPenStyle PenStyle [get, set]
 The pen style used for drawing an object path. More...
 
int PenWidth [get, set]
 The pen width used for drawing an object path. The valid range is 1..31. More...
 
LPVPointShape PointShape [get, set]
 The shape of the drawn point. By default it's a crosshair shape. Set to -1 to fall back to the global setting. More...
 
int PointSize [get, set]
 The radius of the drawn point. By default it's 5 pixels. Set to -1 to fall back to the global setting. More...
 
BOOL RandomBrushColor [get, set]
 Whether the brush color is in random mode. See RandomPenColor for details. More...
 
BOOL RandomFontColor [get, set]
 Whether the font color is in random mode. See RandomPenColor for details. More...
 
BOOL RandomPenColor [get, set]
 Whether the pen color is in random mode. When VARIANT_TRUE, the pen color is re-randomized on each subsequent SetPen / SetPenColor call. This flag is also implicitly set when LPVColorRandom is passed to SetPen / SetPenColor (kept for back-compat). More...
 
- Properties inherited from ILSortable
int Index [get, set]
 The index of the object.
 

Detailed Description

This class implements the interface ILMatchResult, and is used to create an instance of pattern matching result.