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

AVS.CreateSegmentFittingMap Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CreateSegmentFittingMap
(
	AvlNet.ImageFormat inImageFormat,
	AvlNet.SegmentFittingField inFittingField,
	AvlNet.CoordinateSystem2D? inFittingFieldAlignment,
	int inScanCount,
	int inScanWidth,
	AvlNet.SamplingParams inSamplingParams,
	AvlNet.SegmentFittingMap outFittingMap
)

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatDimensions, depth and pixel type of the images on which 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.
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.SamplingParams.interpolation BilinearParameters controlling the sampling process. Default value: .interpolation Bilinear.
outFittingMapAvlNet.SegmentFittingMapOptimized data required for segment fitting.

Function Overrides

See also