Represents a distance map obtained from a distance transformation. More...
#include <distance_map.h>
Public Member Functions | |
| DistanceMap () | |
| Constructor. | |
| float * | getData () |
| Returns a pointer to the beginning of map. | |
| size_t | getHeight () const |
| Returns the height of the map. | |
| size_t | getWidth () const |
| Returns the width of the map. | |
| float & | operator() (const size_t col_index, const size_t row_index) |
| Operator to access an element of the map. | |
| const float & | operator() (const size_t col_index, const size_t row_index) const |
| Operator to access an element of the map. | |
| void | resize (const size_t width, const size_t height) |
| Resizes the map to the specified size. | |
| virtual | ~DistanceMap () |
| Destructor. | |
Protected Attributes | |
| std::vector< float > | data_ |
| The storage for the distance map data. | |
| size_t | height_ |
| The height of the map. | |
| size_t | width_ |
| The width of the map. | |
Represents a distance map obtained from a distance transformation.
Definition at line 47 of file distance_map.h.
| pcl::DistanceMap::DistanceMap | ( | ) | [inline] |
Constructor.
Definition at line 51 of file distance_map.h.
| virtual pcl::DistanceMap::~DistanceMap | ( | ) | [inline, virtual] |
Destructor.
Definition at line 53 of file distance_map.h.
| float* pcl::DistanceMap::getData | ( | ) | [inline] |
Returns a pointer to the beginning of map.
Definition at line 71 of file distance_map.h.
| size_t pcl::DistanceMap::getHeight | ( | ) | const [inline] |
Returns the height of the map.
Definition at line 64 of file distance_map.h.
| size_t pcl::DistanceMap::getWidth | ( | ) | const [inline] |
Returns the width of the map.
Definition at line 57 of file distance_map.h.
| float& pcl::DistanceMap::operator() | ( | const size_t | col_index, |
| const size_t | row_index | ||
| ) | [inline] |
Operator to access an element of the map.
| [in] | col_index | the column index of the element to access. |
| [in] | row_index | the row index of the element to access. |
Definition at line 93 of file distance_map.h.
| const float& pcl::DistanceMap::operator() | ( | const size_t | col_index, |
| const size_t | row_index | ||
| ) | const [inline] |
Operator to access an element of the map.
| [in] | col_index | the column index of the element to access. |
| [in] | row_index | the row index of the element to access. |
Definition at line 103 of file distance_map.h.
| void pcl::DistanceMap::resize | ( | const size_t | width, |
| const size_t | height | ||
| ) | [inline] |
Resizes the map to the specified size.
| [in] | width | the new width of the map. |
| [in] | height | the new height of the map. |
Definition at line 81 of file distance_map.h.
std::vector<float> pcl::DistanceMap::data_ [protected] |
The storage for the distance map data.
Definition at line 110 of file distance_map.h.
size_t pcl::DistanceMap::height_ [protected] |
The height of the map.
Definition at line 114 of file distance_map.h.
size_t pcl::DistanceMap::width_ [protected] |
The width of the map.
Definition at line 112 of file distance_map.h.