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

Invoke.CreateSegmentFittingMap3D

Precomputes a data object that is required for fast segment fitting on surfaces.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void CreateSegmentFittingMap3D
(
	Avl.SurfaceFormat inSurfaceFormat,
	Avl.SegmentFittingField inFittingField,
	Optional<Avl.CoordinateSystem2D> inFittingFieldAlignment,
	int inScanCount,
	Optional<float> inSamplingStep,
	int inScanWidth,
	Avl.InterpolationMethod inSurfaceInterpolation,
	Avl.SegmentFittingMap outFittingMap,
	Diagnostic<List<Avl.Segment2D>> diagScanSegments,
	Diagnostic<List<Avl.Rectangle2D>> diagSamplingAreas
)

Parameters

Name Type Range Default Description
inSurfaceFormatAvl.SurfaceFormatDimensions, depth image pixel type, coordinate offsets and scales of a surface on which segment fitting will be performed.
inFittingFieldAvl.SegmentFittingFieldDefines a rectangle in which scan segments will be created.
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 segment. Default value: 10.
inSamplingStepAtl.Optional<float>Desired distance between consecutive sampling points on the scan segments; if Nil, the bigger of surface X and Y scales is chosen. Default value: atl::NIL.
inScanWidthint<1, INF>5The width of each scan field in pixels of the surface depth image. Default value: 5.
inSurfaceInterpolationAvl.InterpolationMethodavl::InterpolationMethod::NearestNeighbourInterpolation method used for extraction of depth image pixel values. Default value: avl::InterpolationMethod::NearestNeighbour.
outFittingMapAvl.SegmentFittingMapOptimized data required for segment fitting.
diagScanSegmentsAvl.Diagnostic<System.Collections.Generic.List<Avl.Segment2D>>Segments along which the scans will be run.
diagSamplingAreasAvl.Diagnostic<System.Collections.Generic.List<Avl.Rectangle2D>>Scan fields created for point detection.

See also