Leaper WaferScan Toolkit
中文 / English 2.x
Public Member Functions | Properties
ILContourResult Interface Reference

This interface holds a single contour detection result and is used to access its properties. More...

Inheritance diagram for ILContourResult:
ILObject LContourResult

Public Member Functions

void Draw (HDC hdc, LPVContourDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY)
 
ILPointGetCenter ()
 
double GetFeature (LPVContourFeatures feature)
 
ILRectGetRect ()
 
- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

Properties

ILPolygon Contour [get]
 The contour of the result.
 
double DirFilterRate [get]
 The filter rate in percentage for how many pixels remains if filter-by-direction is on.
 
double Score [get]
 The score of the result, based on the sort-by feature defined in detection.
 

Detailed Description

This interface holds a single contour detection result and is used to access its properties.

Usually you get the LContourResult object from the ILContourResults::Item() function. You can then use this interface to access to the contour informations and draw the result on graphics windows.

Example Code

Member Function Documentation

◆ Draw()

void Draw ( HDC  hdc,
LPVContourDrawFlags  drawFlags,
double  zoomX,
double  zoomY,
double  panX,
double  panY 
)

Draw the contour result onto provide device context.

Parameters
[in]drawFlagsControl the drawing behavior, see LPVContourDrawFlags
See also
Use Draw Functions
Remarks
This function is currently not available on Linux / MacOS platform.

◆ GetCenter()

ILPoint* GetCenter ( )

Get the center point of the result

◆ GetFeature()

double GetFeature ( LPVContourFeatures  feature)

Calculate the feature of the contour result

Parameters
[in]featureSpecify the required feature, see LPVContourFeatures.
Return values
valReturn the feature result.

◆ GetRect()

ILRect* GetRect ( )

Get the bounding rectangle of the result