Back to FabImage Library website
You are here: Start » Function Reference » Geometry 3D » Geometry 3D Fitting » FitCircleToPoints3D
FitCircleToPoints3D
| Header: | FIL.h |
|---|---|
| Namespace: | fil |
| Module: | Vision3DStandard |
Approximates points in 3D with a circle using selected outliers suppression method.
Syntax
C++
C#
void fil::FitCircleToPoints3D ( const ftl::Array<fil::Point3D>& inPoints, fil::CircleFittingMethod::Type inFittingMethod, ftl::Optional<fil::MEstimator::Type> inOutlierSuppression, ftl::Optional<const fil::Plane3D&> inPlane, ftl::Conditional<fil::Circle3D>& outCircle, ftl::Optional<ftl::Array<fil::Point3D>&> outInliers = ftl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoints | const Array<Point3D>& | ||
![]() |
inFittingMethod | CircleFittingMethod::Type | ||
![]() |
inOutlierSuppression | Optional<MEstimator::Type> | NIL | |
![]() |
inPlane | Optional<const Plane3D&> | NIL | |
![]() |
outCircle | Conditional<Circle3D>& | Fitted circle or nothing if method failed to converge, | |
![]() |
outInliers | Optional<Array<Point3D>&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL to these parameters: outInliers.
Read more about Optional Outputs.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Empty point array on input in FitCircleToPoints3D. |


