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

AVL.ScanSingleEdge_Direct

Locates the strongest transition between dark and bright pixels along a given path (without a scan map).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ScanSingleEdge_Direct
(
	AvlNet.Image inImage,
	AvlNet.Path inScanPath,
	AvlNet.CoordinateSystem2D? inScanPathAlignment,
	int inScanWidth,
	AvlNet.SamplingParams inSamplingParams,
	AvlNet.EdgeScanParams inEdgeScanParams,
	AvlNet.Selection inEdgeSelection,
	AvlNet.LocalBlindness? inLocalBlindness,
	out AvlNet.Edge1D? outEdge,
	NullableRef<AvlNet.Path> outAlignedScanPath,
	NullableRef<AvlNet.Profile> outBrightnessProfile,
	NullableRef<AvlNet.Profile> outResponseProfile,
	IList<AvlNet.Path> diagSamplingPoints,
	out float diagSamplingStep
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
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.SamplingParamsSamplingParams ( Interpolation: Bilinear SamplingStep: 1.0f SampleCount: Nil )Parameters controlling the sampling process. Default value: SamplingParams ( Interpolation: Bilinear SamplingStep: 1.0f SampleCount: Nil ).
inEdgeScanParamsAvlNet.EdgeScanParamsEdgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f EdgeTransition: BrightToDark )Parameters controlling the edge extraction process. Default value: EdgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f MinMagnitude: 5.0f EdgeTransition: BrightToDark ).
inEdgeSelectionAvlNet.SelectionSelection mode of the resulting edge.
inLocalBlindnessAvlNet.LocalBlindness?Defines conditions in which weaker edges can be detected in the vicinity of stronger edges. Default value: atl::NIL.
outEdgeAvlNet.Edge1D?Found edge.
outAlignedScanPathAvlNet.NullableRef<AvlNet.Path>Transformed input path. Can be null to skip this parameter calculation.
outBrightnessProfileAvlNet.NullableRef<AvlNet.Profile>Extracted image profile. Can be null to skip this parameter calculation.
outResponseProfileAvlNet.NullableRef<AvlNet.Profile>Profile of the edge (derivative) operator response. Can be null to skip this parameter calculation.
diagSamplingPointsSystem.Collections.Generic.IList<AvlNet.Path>Array of paths each one containing the sampling points that contributes to a single value of the extracted profile.
diagSamplingStepfloatUsed distance between consecutive sampling points on the scan path.

Description

The operation scans the image along inScanPath and locates the strongest edge perpendicular to the path. If the strongest edge is weaker than inEdgeScanParams.minMagnitude then the outputs are set to NIL.

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.

Examples

ScanSingleEdge locates the strongest edge across inScanPath.

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