AnnotateGridPoints
Select a subset of the given points that forms a grid and assign 2D indices to them.
Applications:Recognition of a custom regular grid for the purpose of camera calibration.
Syntax
C++
C#
Python
def AnnotateGridPoints( inPoints: list[Point2D], /, *, inMinDistance: float | None = None, inMaxDistance: float | None = None, inAngleTolerance: float = 10.0 ) -> ( outImageGrid: list[AnnotatedPoint2D], diagValidSubgraph: list[Segment2D] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoints | list[Point2D] | Points to calculate a grid | ||
![]() |
inMinDistance | float | None | 0.0 - ![]() |
None | Minimum distance between two rows or two columns in pixels |
![]() |
inMaxDistance | float | None | 0.0 - ![]() |
None | Maximum distance between two rows or two columns in pixels |
![]() |
inAngleTolerance | float | 0.0 - 90.0 | 10.0 | Maximum deviation from right angles in the grid |
![]() |
outImageGrid | list[AnnotatedPoint2D] | Detected grid | ||
![]() |
diagValidSubgraph | list[Segment2D] | Graph forming a valid grid |




