Represents a distance map obtained from a distance transformation. More...
#include <pcl/recognition/distance_map.h>
Public Member Functions |
|
DistanceMap () | |
Constructor. More... |
|
virtual | ~DistanceMap () |
Destructor. More... |
|
std::size_t | getWidth () const |
Returns the width of the map. More... |
|
std::size_t | getHeight () const |
Returns the height of the map. More... |
|
float * | getData () |
Returns a pointer to the beginning of map. More... |
|
void | resize (const std::size_t width, const std::size_t height) |
Resizes the map to the specified size. More... |
|
float & | operator() (const std::size_t col_index, const std::size_t row_index) |
Operator to access an element of the map. More... |
|
const float & | operator() (const std::size_t col_index, const std::size_t row_index) const |
Operator to access an element of the map. More... |
|
Protected Attributes |
|
std::vector< float > | data_ |
The storage for the distance map data. More... |
|
std::size_t | width_ |
The width of the map. More... |
|
std::size_t | height_ |
The height of the map. More... |
|
Detailed Description
Represents a distance map obtained from a distance transformation.
Definition at line 46 of file distance_map.h.
Constructor & Destructor Documentation
DistanceMap()
|
inline |
Constructor.
Definition at line 50 of file distance_map.h.
~DistanceMap()
|
inlinevirtual |
Destructor.
Definition at line 52 of file distance_map.h.
Member Function Documentation
getData()
|
inline |
Returns a pointer to the beginning of map.
Definition at line 70 of file distance_map.h.
References data_.
Referenced by pcl::ColorModality< PointInT >::computeDistanceMap(), and pcl::SurfaceNormalModality< PointXYZT >::computeDistanceMap().
getHeight()
|
inline |
getWidth()
|
inline |
operator()() [1/2]
|
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.
operator()() [2/2]
|
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.
resize()
|
inline |
Resizes the map to the specified size.
- Parameters
-
[in] width the new width of the map. [in] height the new height of the map.
Definition at line 80 of file distance_map.h.
References data_, height_, and width_.
Referenced by pcl::ColorModality< PointInT >::computeDistanceMap(), and pcl::SurfaceNormalModality< PointXYZT >::computeDistanceMap().
Member Data Documentation
data_
|
protected |
The storage for the distance map data.
Definition at line 109 of file distance_map.h.
Referenced by getData(), operator()(), and resize().
height_
|
protected |
The height of the map.
Definition at line 113 of file distance_map.h.
Referenced by getHeight(), and resize().
width_
|
protected |
The width of the map.
Definition at line 111 of file distance_map.h.
Referenced by getWidth(), operator()(), and resize().
The documentation for this class was generated from the following file:
- pcl/recognition/distance_map.h
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_distance_map.html