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

AVL.CreateCircleFittingMap3D Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CreateCircleFittingMap3D(
	AvlNet.SurfaceFormat inSurfaceFormat,
	AvlNet.CircleFittingField inFittingField,
	AvlNet.CoordinateSystem2D? inFittingFieldAlignment,
	int inScanCount,
	int inScanWidth,
	AvlNet.InterpolationMethod inImageInterpolation,
	out AvlNet.CircleFittingMap 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 circle fitting will be performed.
inFittingFieldAvlNet.CircleFittingFieldDefines a ring 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 circle. 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.CircleFittingMapOptimized data required for circle fitting.
diagScanSegmentsAvlNet.Segment2DSegments along which the scans will be run.
diagSamplingAreasAvlNet.Rectangle2DScan fields created for point detection.

See also