Back to Adaptive Vision Library website
You are here: Start » Function Reference » Camera Calibration » DetectPointSegments
DetectPointSegments
Detect points that lie along multiple segments.
Syntax
C++
C#
void avl::DetectPointSegments ( const atl::Array<avl::Point2D>& inPoints, const atl::real inMaxDistance, const int inMaxRank, atl::Optional<atl::real> inMaxRelativeDistance, const atl::real inMaxTurnAngle, const int inMinPointCount, atl::Array<avl::Segment2D>& outPointSegments, atl::Array<avl::Path>& outPaths )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | Points to connect | ||
![]() |
inMaxDistance | const real | 0.0 - ![]() |
10.0f | Maximum distance between connected points |
![]() |
inMaxRank | const int | 1 - ![]() |
1 | Maximum number of segments coming from one point |
![]() |
inMaxRelativeDistance | Optional<real> | 1.0 - ![]() |
2.0f | Maximum distance in relation to the shortest distance for a point |
![]() |
inMaxTurnAngle | const real | 0.0 - 90.0 | 5.0f | Maximum angle between consecutive path segments |
![]() |
inMinPointCount | const int | 2 - ![]() |
3 | Minimum number of points in one path |
![]() |
outPointSegments | Array<Segment2D>& | Segments connecting first and last point of each path | ||
![]() |
outPaths | Array<Path>& | Paths of connected points |
Errors
| Error type | Description |
|---|---|
| RuntimeError | Assertion failed. |



