You are here: Start » AVL.NET » Invoke.FitCircleToStripe_Direct

Invoke.FitCircleToStripe_Direct

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

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void FitCircleToStripe_Direct
(
	Avl.Image inImage,
	Avl.CircleFittingField inFittingField,
	Optional<Avl.CoordinateSystem2D> inFittingFieldAlignment,
	int inScanCount,
	int inScanWidth,
	Avl.SamplingParams inSamplingParams,
	Avl.StripeScanParams inStripeScanParams,
	Avl.Selection inStripeSelection,
	Optional<Avl.LocalBlindness> inLocalBlindness,
	float inMaxIncompleteness,
	Avl.CircleFittingMethod inFittingMethod,
	Optional<Avl.MEstimator> inOutlierSuppression,
	Conditional<Avl.Circle2D> outCircle,
	Conditional<Avl.Circle2D> outInnerCircle,
	Conditional<Avl.Circle2D> outOuterCircle,
	Optional<List<Conditional<Avl.Stripe1D>>> outStripes,
	Optional<List<Avl.Point2D>> outStripePoints,
	Optional<Conditional<Avl.Profile>> outDeviationProfile,
	Optional<Avl.CircleFittingField> outAlignedFittingField,
	Optional<List<Avl.Profile>> outBrightnessProfiles,
	Optional<List<Avl.Profile>> outResponseProfiles,
	Diagnostic<List<Avl.Segment2D>> diagScanSegments,
	Diagnostic<List<Avl.Rectangle2D>> diagSamplingAreas
)

Parameters

Name Type Range Default Description
inImageAvl.ImageImage to fit the circle to.
inFittingFieldAvl.CircleFittingFieldCircle fitting field.
inFittingFieldAlignmentAtl.Optional<Avl.CoordinateSystem2D>Adjusts the fitting field to the position of the inspected object. Default value: atl::NIL.
inScanCountint<3, INF>10The number of points that will be searched to estimate the position of the circle. Default value: 10.
inScanWidthint<1, INF>5The width of each scan field (in pixels). Default value: 5.
inSamplingParamsAvl.SamplingParamsParameters controlling the sampling process.
inStripeScanParamsAvl.StripeScanParamsStripeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil StripePolarity: Dark MinStripeWidth: 0.0f MaxStripeWidth: Nil )Parameters controlling the stripe extraction process. Default value: StripeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil StripePolarity: Dark MinStripeWidth: 0.0f MaxStripeWidth: Nil ).
inStripeSelectionAvl.SelectionSelection mode of stripe.
inLocalBlindnessAtl.Optional<Avl.LocalBlindness>Defines conditions in which weaker edges can be detected in the vicinity of stronger edges. Default value: atl::NIL.
inMaxIncompletenessfloat<0.0f, 0.999f>0.1fMaximal fraction of stripe points not found. Default value: 0.1f.
inFittingMethodAvl.CircleFittingMethodAlgebraicTaubinMethod used to fit a circle. Default value: AlgebraicTaubin.
inOutlierSuppressionAtl.Optional<Avl.MEstimator>Selects a method for ignoring incorrectly detected points. Default value: atl::NIL.
outCircleAtl.Conditional<Avl.Circle2D>Fitted circle in the middle of found stripe.
outInnerCircleAtl.Conditional<Avl.Circle2D>Fitted inner circle.
outOuterCircleAtl.Conditional<Avl.Circle2D>Fitted outer circle.
outStripesAtl.Optional<System.Collections.Generic.List<Atl.Conditional<Avl.Stripe1D>>>Found stripes.
outStripePointsAtl.Optional<System.Collections.Generic.List<Avl.Point2D>>Extracted points of middle circle of an image stripe.
outDeviationProfileAtl.Optional<Atl.Conditional<Avl.Profile>>Profile of distances between the actual circle points and the corresponding reference circle points.
outAlignedFittingFieldAtl.Optional<Avl.CircleFittingField>Fitting field used; in the image coordinate system.
outBrightnessProfilesAtl.Optional<System.Collections.Generic.List<Avl.Profile>>Extracted image profiles.
outResponseProfilesAtl.Optional<System.Collections.Generic.List<Avl.Profile>>Profiles of the edge (derivative) operator response.
diagScanSegmentsAvl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>>Segments along which the scans were run.
diagSamplingAreasAvl.Diagnostic<System.Collections.Generic.List<Avl.Rectangle2D>>Areas from which the input image is sampled.

See also