Represents a distance map obtained from a distance transformation.
More...
#include <pcl/recognition/distance_map.h>
|
| | DistanceMap () |
| | Constructor.
|
| virtual | ~DistanceMap ()=default |
| | Destructor.
|
| std::size_t | getWidth () const |
| | Returns the width of the map.
|
| std::size_t | getHeight () const |
| | Returns the height of the map.
|
| float * | getData () |
| | Returns a pointer to the beginning of map.
|
| void | resize (const std::size_t width, const std::size_t height) |
| | Resizes the map to the specified size.
|
| float & | operator() (const std::size_t col_index, const std::size_t row_index) |
| | Operator to access an element of the map.
|
| const float & | operator() (const std::size_t col_index, const std::size_t row_index) const |
| | Operator to access an element of the map.
|
|
| std::vector< float > | data_ |
| | The storage for the distance map data.
|
| std::size_t | width_ {0} |
| | The width of the map.
|
| std::size_t | height_ {0} |
| | The height of the map.
|
Represents a distance map obtained from a distance transformation.
- Author
- Stefan Holzer
Definition at line 46 of file distance_map.h.
◆ DistanceMap()
| pcl::DistanceMap::DistanceMap |
( |
| ) |
|
|
inline |
◆ ~DistanceMap()
| virtual pcl::DistanceMap::~DistanceMap |
( |
| ) |
|
|
virtualdefault |
◆ getData()
| float * pcl::DistanceMap::getData |
( |
| ) |
|
|
inline |
◆ getHeight()
| std::size_t pcl::DistanceMap::getHeight |
( |
| ) |
const |
|
inline |
◆ getWidth()
| std::size_t pcl::DistanceMap::getWidth |
( |
| ) |
const |
|
inline |
◆ operator()() [1/2]
| float & pcl::DistanceMap::operator() |
( |
const std::size_t | col_index, |
|
|
const std::size_t | row_index ) |
|
inline |
Operator to access an element of the map.
- Parameters
-
| [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 92 of file distance_map.h.
References data_, and width_.
◆ operator()() [2/2]
| const float & pcl::DistanceMap::operator() |
( |
const std::size_t | col_index, |
|
|
const std::size_t | row_index ) const |
|
inline |
Operator to access an element of the map.
- Parameters
-
| [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 102 of file distance_map.h.
References data_, and width_.
◆ resize()
| void pcl::DistanceMap::resize |
( |
const std::size_t | width, |
|
|
const std::size_t | height ) |
|
inline |
◆ data_
| std::vector<float> pcl::DistanceMap::data_ |
|
protected |
◆ height_
| std::size_t pcl::DistanceMap::height_ {0} |
|
protected |
◆ width_
| std::size_t pcl::DistanceMap::width_ {0} |
|
protected |
The documentation for this class was generated from the following file: