Back to Aurora Vision Library website

You are here: Start » Function Reference » Computer Vision » Shape Fitting 3D » FitCircleToStripe3D

FitCircleToStripe3D


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Performs a series of 1D edge detections and finds a circle that best matches the detected points.

Applications: Precise detection of a circular object or hole, whose rough location is known beforehand.

Syntax

C++
C#
 
void avl::FitCircleToStripe3D
(
	const avl::Surface& inSurface,
	const CircleFittingMap& inFittingMap,
	const StripeScanParams3D& inStripeScanParams,
	avl::Selection::Type inStripeSelection,
	atl::Optional<const avl::LocalBlindness&> inLocalBlindness,
	atl::Optional<int> inMaxProfileGapWidth,
	float inMaxIncompleteness,
	avl::CircleFittingMethod::Type inFittingMethod,
	atl::Optional<avl::MEstimator::Type> inOutlierSuppression,
	atl::Conditional<avl::Circle3D>& outCircle,
	atl::Conditional<avl::Circle3D>& outInnerCircle,
	atl::Conditional<avl::Circle3D>& outOuterCircle,
	atl::Optional<atl::Array<atl::Conditional<avl::SurfaceStripe1D>>&> outStripes = atl::NIL,
	atl::Optional<atl::Array<avl::Point3D>&> outStripePoints = atl::NIL,
	atl::Optional<atl::Conditional<avl::Profile>&> outDeviationProfile = atl::NIL,
	atl::Optional<atl::Array<avl::Profile>&> outHeightProfiles = atl::NIL,
	atl::Optional<atl::Array<avl::Profile>&> outResponseProfiles = atl::NIL
)

Parameters

Name Type Range Default Description
Input value inSurface const Surface& Surface to fit the circle to
Input value inFittingMap const CircleFittingMap& Input fitting map
Input value inStripeScanParams const StripeScanParams3D& Parameters controlling the stripe extraction process
Input value inStripeSelection Selection::Type Selection::​Best Selection mode of stripe
Input value inLocalBlindness Optional<const LocalBlindness&> NIL Defines conditions in which weaker edges can be detected in the vicinity of stronger edges
Input value inMaxProfileGapWidth Optional<int> 0 - 1 Maximal number of consecutive not existing profile points
Input value inMaxIncompleteness float 0.0 - 0.999 0.1f Maximal fraction of stripe points not found
Input value inFittingMethod CircleFittingMethod::Type AlgebraicTaubin Method used to fit a circle
Input value inOutlierSuppression Optional<MEstimator::Type> NIL Selects a method for ignoring incorrectly detected points
Output value outCircle Conditional<Circle3D>& Fitted circle in the middle of found stripe or nothing if the fitting fails
Output value outInnerCircle Conditional<Circle3D>& Fitted inner circle
Output value outOuterCircle Conditional<Circle3D>& Fitted outer circle
Output value outStripes Optional<Array<Conditional<SurfaceStripe1D>>&> NIL Found stripes
Output value outStripePoints Optional<Array<Point3D>&> NIL Extracted points of middle circle of a surface stripe
Output value outDeviationProfile Optional<Conditional<Profile>&> NIL Profile of distances between the actual circle points and the corresponding reference circle points
Output value outHeightProfiles Optional<Array<Profile>&> NIL Extracted surface height profiles
Output value outResponseProfiles Optional<Array<Profile>&> NIL Profiles of the edge (derivative) operator response

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outStripes, outStripePoints, outDeviationProfile, outHeightProfiles, outResponseProfiles.

Read more about Optional Outputs.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.