72 return (
data_.data());
80 resize (
const std::size_t width,
const std::size_t height)
82 data_.resize (width*height);
92 operator() (
const std::size_t col_index,
const std::size_t row_index)
102 operator() (
const std::size_t col_index,
const std::size_t row_index)
const
Represents a distance map obtained from a distance transformation.
std::size_t getWidth() const
Returns the width of the map.
DistanceMap()
Constructor.
std::size_t getHeight() const
Returns the height of the map.
float * getData()
Returns a pointer to the beginning of map.
std::size_t height_
The height of the map.
virtual ~DistanceMap()=default
Destructor.
float & operator()(const std::size_t col_index, const std::size_t row_index)
Operator to access an element of the map.
void resize(const std::size_t width, const std::size_t height)
Resizes the map to the specified size.
std::size_t width_
The width of the map.
std::vector< float > data_
The storage for the distance map data.