Leaper WaferScan Toolkit
中文 / English 2.x
Public 成员函数 | 属性
ILContourResult接口 参考

该接口表示单个轮廓检测结果,可获取其具体属性。 更多...

类 ILContourResult 继承关系图:
ILObject LContourResult

Public 成员函数

void Draw (HDC hdc, LPVContourDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY)
 
ILPointGetCenter ()
 
double GetFeature (LPVContourFeatures feature)
 
ILRectGetRect ()
 
- Public 成员函数 继承自 ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

属性

ILPolygon Contour [get]
 该结果的轮廓
 
double DirFilterRate [get]
 该结果的方向过滤比例(百分数),即当按方向过滤打开时,梯度方向与过滤方向一致的轮廓像素占过滤前总数的百分比
 
double Score [get]
 该结果的分数,基于检测时指定的特征
 

详细描述

该接口表示单个轮廓检测结果,可获取其具体属性。

通常通过 ILContourResults::Item() 函数获得 LContourResult 对象。可以使用该接口访问单个轮廓对象的具体信息,如轮廓位置、强度、长度等, 还可以调用绘制函数将单个轮廓对象绘制在界面上。

示例代码

成员函数说明

◆ Draw()

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

绘制该轮廓检测结果到给定设备。

参数
[in]drawFlags控制绘制内容,使用方式请查阅 LPVContourDrawFlags
参见
Use Draw Functions
备注
该函数在 Linux / MacOS 平台暂不可用。

◆ GetCenter()

ILPoint* GetCenter ( )

计算该检测结果的中心位置

◆ GetFeature()

double GetFeature ( LPVContourFeatures  feature)

计算轮廓的属性特征

参数
[in]feature指定特征的类型,查看 LPVContourFeatures
返回值
val返回属性特征的值

◆ GetRect()

ILRect* GetRect ( )

计算该检测结果的包围矩形