Provides a view on a portion of the Distance LUT and can be obtained by calling DistanceLUT::getRegion().
More...
#include <geometry/DistanceLUT.h>
Provides a view on a portion of the Distance LUT and can be obtained by calling DistanceLUT::getRegion().
The region can be traversed using an iterator that provides access to each cell within the region. Finally, each cell stores the distance to a given central point, that was specified in the call to DistanceLUT::getRegion().
◆ Region()
The constructor of the region.
- Parameters
-
[in] | data | the iterator of the LUT |
[in] | stride | the length of one LUT line |
[in] | region | the region boundaries in cells |
◆ getRect()
const Rect2i& getRect |
( |
| ) |
const |
|
inline |
Returns a Rect containing the boundaries of this region.
◆ getXmin()
Returns the minimum x-boundary.
◆ getXmax()
Returns the maximum x-boundary.
◆ getYmin()
Returns the minimum y-boundary.
◆ getYmax()
Returns the maximum y-boundary.
◆ getWidth()
Returns the region's width.
◆ getHeight()
Returns the region's height.
◆ getIterator()
iterator getIterator |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
|
inline |
Returns an iterator to the given cell.
- Parameters
-
[in] | x | the x coordinate of the region point |
[in] | y | the y coordinate of the region point |
◆ begin()
Returns line iterator starting in the specified line.
- Parameters
-
[in] | y | the number of the specified line |
◆ end()
Returns end iterator for the specified line.
- Parameters
-
[in] | y | the number of the specified line |
◆ DistanceLUT
The documentation for this class was generated from the following file: