You are here: Start » AVL.NET » Function Reference » Computer Vision » Shape Fitting 3D » AVL.FitSegmentToStripe3D_Direct

AVL.FitSegmentToStripe3D_Direct

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void FitSegmentToStripe3D_Direct
(
	AvlNet.Surface inSurface,
	AvlNet.SegmentFittingField inFittingField,
	int inScanCount,
	int inScanWidth,
	AvlNet.InterpolationMethod inSurfaceInterpolation,
	AvlNet.StripeScanParams3D inStripeScanParams,
	AvlNet.Selection inStripeSelection,
	float inMaxIncompleteness,
	INullable<AvlNet.Segment3D> outSegment,
	INullable<AvlNet.Segment3D> outLeftSegment,
	INullable<AvlNet.Segment3D> outRightSegment
)

Parameters

Name Type Range Default Description
inSurfaceAvlNet.SurfaceSurface 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.
inSurfaceInterpolationAvlNet.InterpolationMethodBilinearInterpolation method used for extraction of surface points. Default value: Bilinear.
inStripeScanParamsAvlNet.StripeScanParams3DStripeScanParams3D ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil MinStripeWidth: 0.0f MaxStripeWidth: Nil StripePolarity: High )Parameters controlling the stripe extraction process. Default value: StripeScanParams3D ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 1.0f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil MinStripeWidth: 0.0f MaxStripeWidth: Nil StripePolarity: High ).
inStripeSelectionAvlNet.SelectionSelection mode of stripe.
inMaxIncompletenessfloat<0.0f, 0.999f>0.1fMaximal fraction of stripe points not found. Default value: 0.1f.
outSegmentAvlNet.INullable<AvlNet.Segment3D>Fitted segment or nothing if the fitting fails. This parameter cannot be null.
outLeftSegmentAvlNet.INullable<AvlNet.Segment3D>Fitted left segment. This parameter cannot be null.
outRightSegmentAvlNet.INullable<AvlNet.Segment3D>Fitted right segment. This parameter cannot be null.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

List of possible exceptions:

Error type Description
DomainError Sampling step set to zero in FitSegmentToStripe3D.

Function Overrides

See also