You are here: Start » AVL.NET » Function Reference » Computer Vision » 1D Edge Detection » AVL.CreateScanMap

AVL.CreateScanMap

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateScanMap
(
	AvlNet.ImageFormat inImageFormat,
	AvlNet.Path inScanPath,
	AvlNet.CoordinateSystem2D? inScanPathAlignment,
	int inScanWidth,
	AvlNet.SamplingParams inSamplingParams,
	AvlNet.ScanMap outScanMap,
	NullableRef<AvlNet.Path> outAlignedScanPath
)

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatDimensions, depth and pixel type of the image on which edge detection will be performed.
inScanPathAvlNet.PathPath along which the scan is performed.
inScanPathAlignmentAvlNet.CoordinateSystem2D?Adjusts the scan path to the position of the inspected object. Default value: atl::NIL.
inScanWidthint<1, INF>5Width of the scan field in pixels. Default value: 5.
inSamplingParamsAvlNet.SamplingParams.interpolation BilinearParameters controlling the sampling process. Default value: .interpolation Bilinear.
outScanMapAvlNet.ScanMapOptimized data object required for 1D edge detection.
outAlignedScanPathAvlNet.NullableRef<AvlNet.Path>Transformed input path. Can be null to skip this parameter calculation.

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

Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.

Function Overrides

See also