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

AVL.CreateSurfaceScanMap

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateSurfaceScanMap
(
	AvlNet.SurfaceFormat inSurfaceFormat,
	AvlNet.Path inScanPath,
	AvlNet.CoordinateSystem2D? inScanPathAlignment,
	float? inSamplingStep,
	int inScanWidth,
	AvlNet.InterpolationMethod inSurfaceInterpolation,
	AvlNet.ScanMap outScanMap,
	NullableRef<AvlNet.Path> outAlignedScanPath,
	IList<AvlNet.Path> diagSamplingPoints,
	out float diagSamplingStep
)

Parameters

Name Type Range Default Description
inSurfaceFormatAvlNet.SurfaceFormatDimensions, depth image pixel type, coordinate offsets and scales of a surface 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.
inSamplingStepfloat?<0.0f, INF>Desired distance between consecutive sampling points on the scan path; if Nil, the bigger of surface X and Y scales is chosen. Default value: atl::NIL.
inScanWidthint<1, INF>5Width of the scan field in pixels of the surface depth image. Default value: 5.
inSurfaceInterpolationAvlNet.InterpolationMethodBilinearInterpolation method used for extraction of depth image pixel values. Default value: Bilinear.
outScanMapAvlNet.ScanMapOptimized data object required for 1D edge detection in 3D.
outAlignedScanPathAvlNet.NullableRef<AvlNet.Path>Transformed input path. Can be null to skip this parameter calculation.
diagSamplingPointsSystem.Collections.Generic.IList<AvlNet.Path>Array of paths each one containing the sampling points that contributed to a single value of the extracted profile; in the image coordinate system.
diagSamplingStepfloatUsed distance between consecutive sampling points on the scan path.

Description

The operation creates a scan map from a given inScanPath. The scan map can be later used by other 1D Edge Detection 3D 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.

Remarks

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

Function Overrides

See also