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

This interface functionalities of geometric shape fitting from some given points. More...

Inheritance diagram for ILFitting:
ILObject LFitting

Public Member Functions

ILCircleFitCircle (ILPoints *points)
 
ILLineFitLine (ILPoints *points)
 
- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

Properties

int CountThreshold [get, set]
 The minimum required count of points that contribute to a valid fitting result. By default, it's -1 means bypass the count check.
 
double DistThreshold [get, set]
 The distance threshold between the fitting result and a valid point. Points with a longer distance than this value will be treated as out-lier then be excluded from the fitting. By default, it's -1 means bypass the out-lier filtering.
 
int MaxIteration [get, set]
 The maximum iteration count used for optimizing the fitting. By default, it's 10.
 

Detailed Description

This interface functionalities of geometric shape fitting from some given points.

Compared with the fitting method in ILPoints interface, it's able to filtering out-lier points and is more robust to insufficient inputs.

To use this interface, you should create a LFitting object.

Example Code

Member Function Documentation

◆ FitCircle()

ILCircle* FitCircle ( ILPoints points)

Fit a circle based on the input points, which minimize the total distances and go through most of the inputs.

Parameters
[in]pointsThe input points.
Return values
valReturn the fitting result circle

◆ FitLine()

ILLine* FitLine ( ILPoints points)

Fit a line based on the input points, which minimize the total distances and go through most of the inputs.

Parameters
[in]pointsThe input points.
Return values
valReturn the fitting result line