This interface functionalities of geometric shape fitting from some given points. More...
Public Member Functions | |
ILCircle * | FitCircle (ILPoints *points) |
ILLine * | FitLine (ILPoints *points) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
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. | |
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.
Fit a circle based on the input points, which minimize the total distances and go through most of the inputs.
[in] | points | The input points. |
val | Return the fitting result circle |