Back to Aurora Vision Library website
You are here: Start » Function Reference » Computer Vision » Camera Calibration » FilterGridPoints
FilterGridPoints
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | Calibration |
Select a subset of the given points that forms a grid.
Syntax
C++
C#
void avl::FilterGridPoints ( const atl::Array<avl::Point2D>& inPoints, const atl::Optional<int> inMaxAttempts, const atl::Optional<int> inMaxOutlierCount, const float inMinLength, const atl::Optional<float> inMaxLength, const float inMaxLengthRatio, const float inAngleRange, const float inBaseAspectRatioRange, const atl::Optional<float> inBaseAspectRatio, const atl::Optional<float> inBaseShear, const atl::Optional<float> inBaseOrientation, atl::Array<avl::Point2D>& outPointGrid, atl::Array<avl::Segment2D>& diagValidSubgraph, float& diagMaxLength )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | const Array<Point2D>& | ||||
inMaxAttempts | const Optional<int> | 1 - | NIL | Maximum number of attempts at finding the grid | |
inMaxOutlierCount | const Optional<int> | 0 - | NIL | Determines how many outlier points can be present to end the search | |
inMinLength | const float | 0.0 - | 0.0f | Minimum length of a grid segment | |
inMaxLength | const Optional<float> | 0.0 - | 10.0f | Maximum length of a grid segment, if set to Auto it will be approximated | |
inMaxLengthRatio | const float | 1.0 - 2.0 | 1.3f | Maximum ratio of two consecutive segments in the grid | |
inAngleRange | const float | 0.0 - 45.0 | 16.0f | Maximum variation of angles between neighbouring grid segments in degrees | |
inBaseAspectRatioRange | const float | 0.0 - 1.0 | 0.3f | Maximum variation of the base aspect ratio (ignores if base aspect ratio is not given) | |
inBaseAspectRatio | const Optional<float> | 0.3 - 1.0 | 1.0f | A reference aspect ratio of the grid | |
inBaseShear | const Optional<float> | 0.0 - 60.0 | 0.0f | A reference shear angle between grid directions that uses inMaxAngleRange as the maximum error range | |
inBaseOrientation | const Optional<float> | 0.0 - 360.0 | NIL | A reference orientation of one of the grids directions | |
outPointGrid | Array<Point2D>& | Detected grid | |||
diagValidSubgraph | Array<Segment2D>& | Graph forming a valid grid | |||
diagMaxLength | float& | Max length computed by the filter (applicable if inMaxLength is set to Auto) |
Description
This is a simplified version of AnnotateGridPoints_Ransac. See the documentation of that filter for more detail.
See Also
- AnnotateGridPoints_Ransac – Select a subset of the given points that forms a grid and assign 2D indices to them.