38 #ifndef PCL_RECOGNITION_DISTANCE_MAP 39 #define PCL_RECOGNITION_DISTANCE_MAP 81 resize (
const size_t width,
const size_t height)
83 data_.resize (width*height);
93 operator() (
const size_t col_index,
const size_t row_index)
103 operator() (
const size_t col_index,
const size_t row_index)
const DistanceMap()
Constructor.
size_t getHeight() const
Returns the height of the map.
void resize(const size_t width, const size_t height)
Resizes the map to the specified size.
Represents a distance map obtained from a distance transformation.
size_t width_
The width of the map.
std::vector< float > data_
The storage for the distance map data.
virtual ~DistanceMap()
Destructor.
size_t height_
The height of the map.
float * getData()
Returns a pointer to the beginning of map.
float & operator()(const size_t col_index, const size_t row_index)
Operator to access an element of the map.
size_t getWidth() const
Returns the width of the map.