You are here: Start » AVL.NET » AVS.FitSegmentToStripe_Direct Method

AVS.FitSegmentToStripe_Direct Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void FitSegmentToStripe_Direct
(
	AvlNet.Image inImage,
	AvlNet.SegmentFittingField inFittingField,
	int inScanCount,
	int inScanWidth,
	AvlNet.SamplingParams inSamplingParams,
	AvlNet.StripeScanParams inStripeScanParams,
	AvlNet.Selection inStripeSelection,
	float inMaxIncompleteness,
	out AvlNet.Segment2D? outSegment,
	out AvlNet.Segment2D? outLeftSegment,
	out AvlNet.Segment2D? outRightSegment
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageImage to fit segment to.
inFittingFieldAvlNet.SegmentFittingFieldSegment fitting field.
inScanCountint<3, INF>10The number of points that will be searched to estimate the position of the segment. Default value: 10.
inScanWidthint<1, INF>5The width of each scan field (in pixels). Default value: 5.
inSamplingParamsAvlNet.SamplingParamsParameters controlling the sampling process.
inStripeScanParamsAvlNet.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 ).
inStripeSelectionAvlNet.SelectionSelection mode of stripe.
inMaxIncompletenessfloat<0.0f, 0.999f>0.1fMaximal fraction of stripe points not found. Default value: 0.1f.
outSegmentAvlNet.Segment2D?Fitted segment in the middle of found stripe.
outLeftSegmentAvlNet.Segment2D?Fitted left segment.
outRightSegmentAvlNet.Segment2D?Fitted right segment.

Function Overrides

See also