#include <BetaGrid.h>
Public Member Functions | |
virtual Descriptor * | clone () const |
virtual double | distance (const Descriptor *descriptor) const |
const HistogramDistance< double > * | getDistanceFunction () const |
std::vector< std::vector < double > > & | getHistogram () |
const std::vector< std::vector < double > > & | getHistogram () const |
std::vector< std::vector < double > > & | getHit () |
const std::vector< std::vector < double > > & | getHit () const |
std::vector< std::vector < double > > & | getMiss () |
const std::vector< std::vector < double > > & | getMiss () const |
std::vector< std::vector < double > > & | getVariance () |
const std::vector< std::vector < double > > & | getVariance () const |
void | setDistanceFunction (const HistogramDistance< double > *distanceFunction) |
Protected Attributes | |
const HistogramDistance< double > * | m_distanceFunction |
std::vector< std::vector < double > > | m_histogram |
std::vector< std::vector < double > > | m_hit |
std::vector< std::vector < double > > | m_miss |
std::vector< std::vector < double > > | m_variance |
Representation of the Beta grid descriptor. The class represents the Beta grid descriptor presented in the paper. It provides the interface to compare different descriptors, as well as to inspect the internal histogram representation.
Definition at line 42 of file BetaGrid.h.
Descriptor * BetaGrid::clone | ( | ) | const [virtual] |
Clone function for prototyping. It implements the Prototype pattern.
Implements Descriptor.
Definition at line 158 of file BetaGrid.cpp.
double BetaGrid::distance | ( | const Descriptor * | descriptor | ) | const [virtual] |
Implements the distance function between two shape context descriptors. The actual distance is computed using the histogram distance defined in m_distanceFunction .
Implements Descriptor.
Definition at line 162 of file BetaGrid.cpp.
const HistogramDistance<double>* BetaGrid::getDistanceFunction | ( | ) | const [inline] |
Returns the distance function used to compeare two -Grids.
Definition at line 86 of file BetaGrid.h.
std::vector< std::vector< double > >& BetaGrid::getHistogram | ( | ) | [inline] |
Returns the -Grid in the form of a bidimensional histogram. The first dimension represents the angle and the second dimension the distance.
Definition at line 58 of file BetaGrid.h.
const std::vector< std::vector< double > >& BetaGrid::getHistogram | ( | ) | const [inline] |
Returns the -Grid in the form of a bidimensional histogram. The first dimension represents the angle and the second dimension the distance.
Definition at line 54 of file BetaGrid.h.
std::vector< std::vector< double > >& BetaGrid::getHit | ( | ) | [inline] |
Returns the histogram of occupied cells computed to obtain the -Grid descriptor. The first dimension represents the angle and the second dimension the distance.
Definition at line 74 of file BetaGrid.h.
const std::vector< std::vector< double > >& BetaGrid::getHit | ( | ) | const [inline] |
Returns the histogram of occupied cells computed to obtain the -Grid descriptor. The first dimension represents the angle and the second dimension the distance.
Definition at line 70 of file BetaGrid.h.
std::vector< std::vector< double > >& BetaGrid::getMiss | ( | ) | [inline] |
Returns the histogram of free cells computed to obtain the -Grid descriptor. The first dimension represents the angle and the second dimension the distance.
Definition at line 82 of file BetaGrid.h.
const std::vector< std::vector< double > >& BetaGrid::getMiss | ( | ) | const [inline] |
Returns the histogram of free cells computed to obtain the -Grid descriptor. The first dimension represents the angle and the second dimension the distance.
Definition at line 78 of file BetaGrid.h.
std::vector< std::vector< double > >& BetaGrid::getVariance | ( | ) | [inline] |
Returns the -Grid variance in the form of a bidimensional histogram. The first dimension represents the angle and the second dimension the distance.
Definition at line 66 of file BetaGrid.h.
const std::vector< std::vector< double > >& BetaGrid::getVariance | ( | ) | const [inline] |
Returns the -Grid variance in the form of a bidimensional histogram. The first dimension represents the angle and the second dimension the distance.
Definition at line 62 of file BetaGrid.h.
void BetaGrid::setDistanceFunction | ( | const HistogramDistance< double > * | distanceFunction | ) | [inline] |
Sets the distance function used to compeare two -Grids.
Definition at line 90 of file BetaGrid.h.
const HistogramDistance<double>* BetaGrid::m_distanceFunction [protected] |
The distance function used to compeare two -Grids.
Definition at line 94 of file BetaGrid.h.
std::vector< std::vector< double > > BetaGrid::m_histogram [protected] |
The histogram representing the -Grid.
Definition at line 95 of file BetaGrid.h.
std::vector< std::vector< double > > BetaGrid::m_hit [protected] |
Definition at line 97 of file BetaGrid.h.
std::vector< std::vector< double > > BetaGrid::m_miss [protected] |
The histogram of occupied cells.
Definition at line 98 of file BetaGrid.h.
std::vector< std::vector< double > > BetaGrid::m_variance [protected] |
The histogram representing the variance of the -Grid.
Definition at line 96 of file BetaGrid.h.