![]() |
Perception Tool Kit (PTK) API Guide
|
Grid box (rectangle) iterators produce a sequence of the cell coordinates which lie inside a rectangle defined in physical grid coordinates.

Data Fields | |
| const PTK_Grid * | grid |
| const PTK_GridRoi * | roi |
| uint32_t | cellX |
| uint32_t | cellY |
| uint32_t | minCellX |
| uint32_t | minCellY |
| uint32_t | maxCellX |
| uint32_t | maxCellY |
| float | cx |
| float | cy |
| float | utx |
| float | uty |
| float | vtx |
| float | vty |
| int32_t | valid |
| const PTK_Grid* PTK_GridIter_PhysBox::grid |
Grid context.
| const PTK_GridRoi* PTK_GridIter_PhysBox::roi |
Box parameters with target coordinates being the grid's physical coordinate system.
| uint32_t PTK_GridIter_PhysBox::cellX |
Current iterator x coordinate.
| uint32_t PTK_GridIter_PhysBox::cellY |
Current iterator y coordinate.
| uint32_t PTK_GridIter_PhysBox::minCellX |
Iteration limits (bounding box in cell coordinates).
| uint32_t PTK_GridIter_PhysBox::minCellY |
Iteration limits (bounding box in cell coordinates).
| uint32_t PTK_GridIter_PhysBox::maxCellX |
Iteration limits (bounding box in cell coordinates).
| uint32_t PTK_GridIter_PhysBox::maxCellY |
Iteration limits (bounding box in cell coordinates).
| float PTK_GridIter_PhysBox::cx |
Translation component for taking grid coordinates to normalized box coordinates.
| float PTK_GridIter_PhysBox::cy |
Translation component for taking grid coordinates to normalized box coordinates.
| float PTK_GridIter_PhysBox::utx |
Rotation component taking grid coordinates to normalized box coordinates.
| float PTK_GridIter_PhysBox::uty |
Rotation component taking grid coordinates to normalized box coordinates.
| float PTK_GridIter_PhysBox::vtx |
Rotation component taking grid coordinates to normalized box coordinates.
| float PTK_GridIter_PhysBox::vty |
Rotation component taking grid coordinates to normalized box coordinates.
| int32_t PTK_GridIter_PhysBox::valid |
Is the iterator valid to produce a new result?.