You are here: Start » AVL.NET » Invoke.PathTurnAngleLocalMaxima

Invoke.PathTurnAngleLocalMaxima

Finds the local maxima of the profile of turn angles of a path.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void PathTurnAngleLocalMaxima
(
	Avl.Path inPath,
	Avl.TurnAngleDirection inAllowedTurnDirection,
	Avl.TurnAnglePrecision inResultPrecision,
	float inMinTurnAngle,
	float inMinDistance,
	float inSmoothingStdDev,
	List<float> outTurnAngleMaximaIndices,
	List<Avl.Point2D> outTurnAngleMaximaPoints,
	List<float> outTurnAngleMaximaAngles,
	Diagnostic<Avl.Path> diagSmoothedPath,
	Diagnostic<Avl.Profile> diagTurnAngleProfile
)

Parameters

Name Type Range Default Description
inPathAvl.PathInput path.
inAllowedTurnDirectionAvl.TurnAngleDirectionAllAllows to detect only left-turns, only right-turns or both. Default value: All.
inResultPrecisionAvl.TurnAnglePrecisionSwitches between pixel-precise or subpixel-precise detection of the found maxima.
inMinTurnAnglefloat<0.0f, 180.0f>30.0fMinimal value of a relevant angle. Default value: 30.0f.
inMinDistancefloat<0.0f, INF>0.0fMinimal distance on the path between two local maxima assuming each path segment has unit length. Default value: 0.0f.
inSmoothingStdDevfloat<0.0f, INF>0.6fStandard deviation of the gaussian smoothing applied to the input path. Default value: 0.6f.
outTurnAngleMaximaIndicesSystem.Collections.Generic.List<float>Indices of found local maxima.
outTurnAngleMaximaPointsSystem.Collections.Generic.List<Avl.Point2D>Found local maxima of turn angle profile of the smoothed input path.
outTurnAngleMaximaAnglesSystem.Collections.Generic.List<float>Turn angles of found local maxima.
diagSmoothedPathAvl.Diagnostic<Avl.Path>Input path smoothed with gaussian kernel.
diagTurnAngleProfileAvl.Diagnostic<Avl.Profile>Profile of turn angles at characteristic points of the smoothed input path.

See also