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

AVL.CreateSegmentFittingMap3D Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CreateSegmentFittingMap3D(
	AvlNet.SurfaceFormat inSurfaceFormat,
	AvlNet.SegmentFittingField inFittingField,
	AvlNet.CoordinateSystem2D? inFittingFieldAlignment,
	int inScanCount,
	int inScanWidth,
	AvlNet.InterpolationMethod inImageInterpolation,
	out AvlNet.SegmentFittingMap outFittingMap,
	out AvlNet.Segment2D[] diagScanSegments,
	out AvlNet.Rectangle2D[] diagSamplingAreas
)

Parameters

Name Type Range Default Description
inSurfaceFormatAvlNet.SurfaceFormatDimensions, depth image pixel type, coordinate offsets and scales of a surface on which segment fitting will be performed.
inFittingFieldAvlNet.SegmentFittingFieldDefines a rectangle in which scan segments will be created.
inFittingFieldAlignmentAvlNet.CoordinateSystem2D?Adjusts the fitting field to the position of the inspected object. Default value: atl::NIL, or null.
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 of the surface depth image. Default value: 5.
inImageInterpolationAvlNet.InterpolationMethodavl::InterpolationMethod::NearestNeighbourInterpolation method used for extraction of depth image pixel values. Default value: avl::InterpolationMethod::NearestNeighbour.
outFittingMapAvlNet.SegmentFittingMapOptimized data required for segment fitting.
diagScanSegmentsAvlNet.Segment2DSegments along which the scans will be run.
diagSamplingAreasAvlNet.Rectangle2DScan fields created for point detection.

See also