You are here: Start » AVL.NET » AVL.FitArcToStripe(AvlNet.Image, AvlNet.ArcFittingMap, AvlNet.StripeScanParams, AvlNet.Selection, AvlNet.LocalBlindness, float, AvlNet.CircleFittingMethod, AvlNet.MEstimator?, AvlNet.Arc2D?, AvlNet.Arc2D?, AvlNet.Arc2D?, AvlNet.Point2D[], AvlNet.Point2D[], AvlNet.Point2D[], AvlNet.Profile, float[], AvlNet.Profile[], AvlNet.Profile[])

AVL.FitArcToStripe(AvlNet.Image, AvlNet.ArcFittingMap, AvlNet.StripeScanParams, AvlNet.Selection, AvlNet.LocalBlindness, float, AvlNet.CircleFittingMethod, AvlNet.MEstimator?, AvlNet.Arc2D?, AvlNet.Arc2D?, AvlNet.Arc2D?, AvlNet.Point2D[], AvlNet.Point2D[], AvlNet.Point2D[], AvlNet.Profile, float[], AvlNet.Profile[], AvlNet.Profile[])

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void FitArcToStripe(
	AvlNet.Image inImage,
	AvlNet.ArcFittingMap inFittingMap,
	AvlNet.StripeScanParams inStripeScanParams,
	AvlNet.Selection inStripeSelection,
	AvlNet.LocalBlindness inLocalBlindness,
	float inMaxIncompleteness,
	AvlNet.CircleFittingMethod inFittingMethod,
	AvlNet.MEstimator? inOutlierSuppression,
	out AvlNet.Arc2D? outArc,
	out AvlNet.Arc2D? outInnerArc,
	out AvlNet.Arc2D? outOuterArc,
	out AvlNet.Point2D[] outStripePoints,
	out AvlNet.Point2D[] outInnerStripePoints,
	out AvlNet.Point2D[] outOuterStripePoints,
	out AvlNet.Profile outDeviationProfile,
	out float[] outStripeMagnitudes,
	out AvlNet.Profile[] diagBrightnessProfiles,
	out AvlNet.Profile[] diagResponseProfiles
)

Parameters

inImage
Type: AvlNet.Image
Input image to fit arc to
inFittingMap
Type: AvlNet.ArcFittingMap
Input fitting map
inStripeScanParams
Type: AvlNet.StripeScanParams
Parameters controlling the stripe extraction process
inStripeSelection
Type: AvlNet.Selection
Selection mode of stripe
inLocalBlindness
Type: AvlNet.LocalBlindness
Defines conditions in which weaker edges can be detected in the vicinity of stronger edges, or null.
inMaxIncompleteness
Type: System.Single
Maximal fraction of stripe points not found
inFittingMethod
Type: AvlNet.CircleFittingMethod
Method used to fit an arc
inOutlierSuppression
Type: System.Nullable<AvlNet.MEstimator>
Selects a method for ignoring incorrectly detected points, or null.
outArc
Type: System.Nullable<AvlNet.Arc2D>
Fitted arc in the middle of found stripe
outInnerArc
Type: System.Nullable<AvlNet.Arc2D>
Fitted inner arc
outOuterArc
Type: System.Nullable<AvlNet.Arc2D>
Fitted outer arc
outStripePoints
Type: AvlNet.Point2D
outInnerStripePoints
Type: AvlNet.Point2D
outOuterStripePoints
Type: AvlNet.Point2D
outDeviationProfile
Type: AvlNet.Profile
outStripeMagnitudes
Type: System.Single
diagBrightnessProfiles
Type: AvlNet.Profile
Extracted image profiles
diagResponseProfiles
Type: AvlNet.Profile
Profiles of the edge (derivative) operator response

Description

The operation tries to fit a given arc to stripe present in the inImage image. Internally, it performs a series of scans with the ScanSingleStripe filter using inFittingMap previously generated from the object being fitted. The found points are then used to determine the actual position of the arc in the image. Only inMaxIncompleteness fraction of these scans may fail. If the fitting according to the given parameters is not possible, outArc is set to Nil.

Examples

Fitting an arc to the dark stripe formed on one side of a hole
(inStripeScanParams.Polarity = Dark).

Remarks

For more information about local coordinate systems please refer to the following article.

This filter is a part of the Shape Fitting toolset. To read more about this technique, one can refer to the Shape Fitting chapter of our Machine Vision Guide

See also