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

AVL.ScanExactlyNRidges_Direct

Locates a specified number of 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 ScanExactlyNRidges_Direct
(
	AvlNet.Image inImage,
	AvlNet.Path inScanPath,
	AvlNet.CoordinateSystem2D? inScanPathAlignment,
	int inScanWidth,
	AvlNet.SamplingParams inSamplingParams,
	AvlNet.RidgeScanParams inRidgeScanParams,
	int inRidgeCount,
	AvlNet.Selection inRidgeSelection,
	float inMinDistance,
	float? inMaxDistance,
	AvlNet.LocalBlindness? inLocalBlindness,
	INullable<List<AvlNet.Ridge1D>> outRidges,
	INullable<List<AvlNet.Gap1D>> outGaps,
	AvlNet.Path outAlignedScanPath,
	AvlNet.Profile diagBrightnessProfile,
	AvlNet.Profile diagResponseProfile,
	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 ).
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 ).
inRidgeCountint<0, INF>1Number of ridges to be found. Default value: 1.
inRidgeSelectionAvlNet.SelectionSelection mode of the resulting ridges.
inMinDistancefloat<0.0f, INF>0.0fMinimal distance between consecutive ridges. Default value: 0.0f.
inMaxDistancefloat?<0.0f, INF>Maximal distance between consecutive ridges. Default value: atl::NIL.
inLocalBlindnessAvlNet.LocalBlindness?Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges. Default value: atl::NIL.
outRidgesAvlNet.INullable<System.Collections.Generic.List<AvlNet.Ridge1D>>Found ridges. This parameter cannot be null.
outGapsAvlNet.INullable<System.Collections.Generic.List<AvlNet.Gap1D>>Gaps between consecutive edges. This parameter cannot be null.
outAlignedScanPathAvlNet.PathTransformed input path.
diagBrightnessProfileAvlNet.ProfileExtracted image profile.
diagResponseProfileAvlNet.ProfileProfile of the ridge operator response.
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 finds a set of inRidgeCount image ridges perpendicular to the path. If no subset (of inRidgeCount elements) of detected ridges meets the requirements of inRidgeScanParams.minMagnitude, inMinDistance, inRidgeScanParams.ridgePolarity 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.

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

ScanMultipleRidges locates the ridges 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