Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Metrics » PathToPointDistanceProfile
PathToPointDistanceProfile
Computes the profile of distances between the specified point and the characteristic points of a path.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::PathToPointDistanceProfile ( const avl::Point2D& inPoint, const avl::Path& inPath, float inResolution, avl::Profile& outDistanceProfile, atl::Optional<atl::Array<float>&> outDistances = atl::NIL, atl::Optional<atl::Array<avl::Segment2D>&> outConnectingSegments = atl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoint | const Point2D& | Input point | |||
inPath | const Path& | Input path | |||
inResolution | float | 0.0 - | 1.0f | ||
outDistanceProfile | Profile& | Profile of distances between input point and consecutive points of input path | |||
outDistances | Optional<Array<float>&> | NIL | Distances between input point and consecutive points of input path | ||
outConnectingSegments | Optional<Array<Segment2D>&> | NIL | Segments connecting input point and consecutive points of input path |
Description
The operation iterates over characteristic points of inPath and at each point computes the distance from this point to inPoint. The operation computes outDistanceProfile profile of consecutive distances and, additionally, the outConnectingSegments array of corresponding line segments.
Examples
See Also
- PathToPointDistance – Computes the smallest distance between a path and a point.