You are here: Start » AVL.NET » AVL.CreatePathFittingMap(AvlNet.ImageFormat, AvlNet.PathFittingField, AvlNet.CoordinateSystem2D?, float?, int, AvlNet.InterpolationMethod, AvlNet.PathFittingMap, AvlNet.Segment2D[], AvlNet.Rectangle2D[])

AVL.CreatePathFittingMap(AvlNet.ImageFormat, AvlNet.PathFittingField, AvlNet.CoordinateSystem2D?, float?, int, AvlNet.InterpolationMethod, AvlNet.PathFittingMap, AvlNet.Segment2D[], AvlNet.Rectangle2D[])

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreatePathFittingMap(
	AvlNet.ImageFormat inImageFormat,
	AvlNet.PathFittingField inFittingField,
	AvlNet.CoordinateSystem2D? inFittingFieldAlignment,
	float? inScanStep,
	int inScanWidth,
	AvlNet.InterpolationMethod inImageInterpolation,
	out AvlNet.PathFittingMap outFittingMap,
	out AvlNet.Segment2D[] diagScanSegments,
	out AvlNet.Rectangle2D[] diagSamplingAreas
)

Parameters

inImageFormat
Type: AvlNet.ImageFormat
Dimensions, depth and pixel type of the images on which fitting will be performed
inFittingField
Type: AvlNet.PathFittingField
Defines a stripe in which scan segments will be created
inFittingFieldAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
Adjusts the fitting field to the position of the inspected object, or null.
inScanStep
Type: System.Nullable<System.Single>
Optional implicit conversion of the input path to an equidistant one, or null.
inScanWidth
Type: System.Int32
The width of each scan field (in pixels)
inImageInterpolation
Type: AvlNet.InterpolationMethod
Interpolation method used for extraction of image pixel values
outFittingMap
Type: AvlNet.PathFittingMap
Optimized data required for path fitting
diagScanSegments
Type: AvlNet.Segment2D
Segments along which the scans will be run
diagSamplingAreas
Type: AvlNet.Rectangle2D
Scan fields created for point detection

Description

The operation creates a series of scan maps that can be later used by other Shape Fitting filters. Each scan map corresponds to a single scan segment of inScanWidth length.

The optional parameter inFittingFieldAlignment defines the transform to be performed on the inFittingField so that the result is defined in a new context, e.g. returned by one of Template Matching filters.

Remarks

For more information about local coordinate systems please refer to the following article.

This filter is a part of the Shape Fitting toolset. To read more about this technique, one can refer to the Shape Fitting chapter of our Machine Vision Guide

See also