Back to Adaptive Vision Library website

You are here: Start » Function Reference » Path Features » PathTurnAngleMaximum_OrNil

PathTurnAngleMaximum_OrNil


Header:AVL.h
Namespace:avl

Finds the maximum of the profile of turn angles of a path; returns NIL if the path has no turn angles.

Syntax

C++
C#
 
void avl::PathTurnAngleMaximum_OrNil
(
	const avl::Path& inPath,
	avl::TurnAngleDirection::Type inAllowedTurnDirection,
	avl::TurnAnglePrecision::Type inResultPrecision,
	atl::Conditional<float>& outMaximumTurnAngleIndex,
	atl::Conditional<avl::Point2D>& outMaximumTurnAnglePoint,
	atl::Conditional<float>& outMaximumTurnAngleAngle
)

Parameters

Name Type Default Description
inPath const Path& Input path
inAllowedTurnDirection TurnAngleDirection::Type All Allows to detect only left-turns, only right-turns or both
inResultPrecision TurnAnglePrecision::Type Switches between pixel-precise or subpixel-precise detection of the found maximum
outMaximumTurnAngleIndex Conditional<float>& Index of found maximum
outMaximumTurnAnglePoint Conditional<Point2D>& Found point of a path with maximum turn angle
outMaximumTurnAngleAngle Conditional<float>& Maximal turn angle of the input path