You are here: Start » AVL.NET » AVL.CreateScanMap(AvlNet.ImageFormat, AvlNet.Path, AvlNet.CoordinateSystem2D?, int, AvlNet.InterpolationMethod, AvlNet.ScanMap, AvlNet.Path, AvlNet.Path[])

AVL.CreateScanMap(AvlNet.ImageFormat, AvlNet.Path, AvlNet.CoordinateSystem2D?, int, AvlNet.InterpolationMethod, AvlNet.ScanMap, AvlNet.Path, AvlNet.Path[])

Precomputes a data object that is required for fast 1D edge detection.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreateScanMap(
	AvlNet.ImageFormat inImageFormat,
	AvlNet.Path inScanPath,
	AvlNet.CoordinateSystem2D? inScanPathAlignment,
	int inScanWidth,
	AvlNet.InterpolationMethod inImageInterpolation,
	out AvlNet.ScanMap outScanMap,
	out AvlNet.Path outAlignedScanPath,
	out AvlNet.Path[] diagSamplingPoints
)

Parameters

inImageFormat
Type: AvlNet.ImageFormat
Dimensions, depth and pixel type of the image on which edge detection will be performed
inScanPath
Type: AvlNet.Path
Path along which the scan is performed
inScanPathAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
Adjusts the scan path to the position of the inspected object, or null.
inScanWidth
Type: System.Int32
Width of the scan field in pixels
inImageInterpolation
Type: AvlNet.InterpolationMethod
Interpolation method used for extraction of image pixel values
outScanMap
Type: AvlNet.ScanMap
Optimized data object required for 1D edge detection
outAlignedScanPath
Type: AvlNet.Path
diagSamplingPoints
Type: AvlNet.Path
Array of paths each one containing the sampling points that contributes to a single value of the extracted profile

Description

The operation creates a scan map from a given inScanPath. The scan map can be later used by other 1D Edge Detection filters.

The optional parameter inScanPathAlignment defines a transform to be performed on the inScanPath so that the actual scan path (outAlignedScanPath) is adjusted to the position of the object, typically detected by one of Template Matching filters.

This filter is a part of the 1D Edge Detection toolset. For a comprehensive introduction to this technique please refer to 1D Edge Detection and 1D Edge Detection - Subpixel Precision chapters of our Machine Vision Guide.

Remarks

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

See also