![]() |
Perception Tool Kit (PTK) API Guide
|
Defines a rectangle in a target coordinate system. In local coordinate system, the vertices are (0|0), (xWidth|0), (xWidth|yWidth), (0|yWidth).
For example, if the target coordinate system is the local system, then xOffset = yOffset = 0 and xDir = 1, yDir = 0

Data Fields | |
| float | xOffset |
| float | yOffset |
| float | xWidth |
| float | yWidth |
| float | xDir |
| float | yDir |
| float PTK_GridRoi::xOffset |
Rectangle's local (0|0) vertex in target coordinates (x-component).
| float PTK_GridRoi::yOffset |
Rectangle's local (0|0) vertex in target coordinates (y-component).
| float PTK_GridRoi::xWidth |
Rectangle's width along rectangle's local x-axis.
| float PTK_GridRoi::yWidth |
Rectangle's width along rectangle's local y-axis.
| float PTK_GridRoi::xDir |
Direction of rectangle's x-axis in target coordinates (x-component).
| float PTK_GridRoi::yDir |
Direction of rectangle's x-axis in target coordinates (y-component).