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

AVL.ScanMultipleStripes

Locates multiple pairs of edges across a given path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ScanMultipleStripes
(
	AvlNet.Image inImage,
	AvlNet.ScanMap inScanMap,
	AvlNet.StripeScanParams inStripeScanParams,
	float inMinGapWidth,
	IList<AvlNet.Stripe1D> outStripes,
	IList<AvlNet.Gap1D> outGaps
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inScanMapAvlNet.ScanMapData precomputed with CreateScanMap.
inStripeScanParamsAvlNet.StripeScanParamsStripeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil StripePolarity: Dark MinStripeWidth: 0.0f MaxStripeWidth: Nil )Parameters controlling the stripe extraction process. Default value: StripeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f MaxInnerEdgeMagnitude: Nil StripePolarity: Dark MinStripeWidth: 0.0f MaxStripeWidth: Nil ).
inMinGapWidthfloat<0.0f, INF>0.0fMinimal distance between consecutive stripes. Default value: 0.0f.
outStripesSystem.Collections.Generic.IList<AvlNet.Stripe1D>Found stripes.
outGapsSystem.Collections.Generic.IList<AvlNet.Gap1D>Distances between consecutive stripes.

Description

The operation scans the image using inScanMap previously generated from a scan path and detects consecutive stripes (i.e. pairs of opposite-polarity edges running across the path). Depending on the inStripeScanParams.stripePolarity parameter, dark or bright stripes will be taken into account.

When the number of edge pairs to be measured is known, one can use the ScanExactlyNStripes filter.

Note that in case of a scan path which is closed, the parameters controlling the distances between consecutive found objects do not control the distance between the first and the last of the found objects (counting from the beginning of the scan path).

Examples

ScanMultipleStripes locates the edge pairs using a scan map representing the scan path above (inStripeScanParams.stripePolarity = Dark, inStripeScanParams.minStripeWidth = 45).

Remarks

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

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.

Function Overrides

See also