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

AVL.ScanSingleRidge_Direct

Locates the strongest dark or bright pixel peak along a given path (without a scan map).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ScanSingleRidge_Direct
(
	AvlNet.Image inImage,
	AvlNet.Path inScanPath,
	int inScanWidth,
	AvlNet.SamplingParams inSamplingParams,
	AvlNet.RidgeScanParams inRidgeScanParams,
	AvlNet.Selection inRidgeSelection,
	out AvlNet.Ridge1D? outRidge
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inScanPathAvlNet.PathPath along which the scan is performed.
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 ).
inRidgeScanParamsAvlNet.RidgeScanParamsRidgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f RidgeWidth: 5 RidgeMargin: 2 MinMagnitude: 5.0f RidgePolarity: Dark )Parameters controlling the ridge extraction process. Default value: RidgeScanParams ( ProfileInterpolation: Quadratic4 SmoothingStdDev: 0.6f RidgeWidth: 5 RidgeMargin: 2 MinMagnitude: 5.0f RidgePolarity: Dark ).
inRidgeSelectionAvlNet.SelectionSelection mode of the resulting ridge.
outRidgeAvlNet.Ridge1D?Found ridge.

Description

The operation scans the image along inScanPath and locates the strongest ridge of the given characteristics. If there is no such ridge 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

ScanSingleRidge locates the strongest ridge 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