Back to Adaptive Vision Library website
You are here: Start » Function Reference » Shape Fitting 3D » FitCircleToEdges3D
FitCircleToEdges3D
Performs a series of 1D edge detections and finds a circle that best matches the detected points.
Syntax
C++
C#
void avl::FitCircleToEdges3D ( const avl::Surface& inSurface, const CircleFittingMap& inFittingMap, const EdgeScanParams3D& inEdgeScanParams, avl::Selection::Type inEdgeSelection, atl::Optional<const avl::LocalBlindness&> inLocalBlindness, atl::Optional<int> inMaxInterpolationLength, float inMaxIncompleteness, avl::CircleFittingMethod::Type inFittingMethod, atl::Optional<avl::MEstimator::Type> inOutlierSuppression, atl::Conditional<avl::Circle3D>& outCircle, atl::Optional<atl::Array<atl::Conditional<avl::SurfaceEdge1D> >&> outEdges = atl::NIL, atl::Optional<atl::Conditional<avl::Profile>&> outDeviationProfile = atl::NIL, atl::Array<avl::Profile>& diagBrightnessProfiles, atl::Array<avl::Profile>& diagResponseProfiles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSurface | const Surface& | Surface to fit the circle to | |||
inFittingMap | const CircleFittingMap& | Input fitting map | |||
inEdgeScanParams | const EdgeScanParams3D& | Parameters controlling the edge extraction process | |||
inEdgeSelection | Selection::Type | SelectionBest | Selection mode of edges | ||
inLocalBlindness | Optional<const LocalBlindness&> | NIL | Defines conditions in which weaker edges can be detected in the vicinity of stronger edges | ||
inMaxInterpolationLength | Optional<int> | 0 - | NIL | Maximal number of consecutive not existing profile points | |
inMaxIncompleteness | float | 0.0 - 0.999 | 0.1f | Maximal fraction of edge points not found | |
inFittingMethod | CircleFittingMethod::Type | AlgebraicTaubin | Method used to fit a circle | ||
inOutlierSuppression | Optional<MEstimator::Type> | NIL | Selects a method for ignoring incorrectly detected points | ||
outCircle | Conditional<Circle3D>& | Fitted circle or nothing if the fitting fails | |||
outEdges | Optional<Array<Conditional<SurfaceEdge1D> >&> | NIL | Found edges | ||
outDeviationProfile | Optional<Conditional<Profile>&> | NIL | Profile of distances between the actual circle points and the corresponding reference circle points | ||
diagBrightnessProfiles | Array<Profile>& | Extracted image profiles | |||
diagResponseProfiles | Array<Profile>& | Profiles of the edge (derivative) operator response |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.