You are here: Start » FIL.NET » FIL.PathTurnAngleLocalMaxima
Finds the local maxima of the profile of turn angles of a path.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void PathTurnAngleLocalMaxima ( FilNet.Path inPath, FilNet.TurnAngleDirection inAllowedTurnDirection, FilNet.TurnAnglePrecision inResultPrecision, float inMinTurnAngle, float inMinDistance, float inSmoothingStdDev, IList<float> outTurnAngleMaximaIndices, IList<FilNet.Point2D> outTurnAngleMaximaPoints, IList<float> outTurnAngleMaximaAngles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPath | FilNet.Path | Input path. | ||
![]() | inAllowedTurnDirection | FilNet.TurnAngleDirection | All | Allows to detect only left-turns, only right-turns or both. Default value: All. | |
![]() | inResultPrecision | FilNet.TurnAnglePrecision | Switches between pixel-precise or subpixel-precise detection of the found maxima. | ||
![]() | inMinTurnAngle | float | <0.0f, 180.0f> | 30.0f | Minimal value of a relevant angle. Default value: 30.0f. |
![]() | inMinDistance | float | <0.0f, INF> | 0.0f | Minimal distance on the path between two local maxima assuming each path segment has unit length. Default value: 0.0f. |
![]() | inSmoothingStdDev | float | <0.0f, INF> | 0.6f | Standard deviation of the gaussian smoothing applied to the input path. Default value: 0.6f. |
![]() | outTurnAngleMaximaIndices | System.Collections.Generic.IList<float> | Indices of found local maxima. | ||
![]() | outTurnAngleMaximaPoints | System.Collections.Generic.IList<FilNet.Point2D> | Found local maxima of turn angle profile of the smoothed input path. | ||
![]() | outTurnAngleMaximaAngles | System.Collections.Generic.IList<float> | Turn angles of found local maxima. |
Description
The operation computes the profile of turn angles of a path and finds the local maxima of the profile having value at least inMinTurnAngle. The inAllowedTurnDirection parameter restricts kind of turns taken into consideration (left-turns only, right-turns only or both), while inResultPrecision determines the precision of the resulting maxima points. Found maxima have to be at least inMinDistance from each other (the distance is measured along the input path assuming each path segment has unit length).
Examples
![]() |
PathTurnAngleLocalMaxima run on the sample path with inAllowedTurnDirection = Right