#include <ShapeContext.h>
Public Member Functions | |
virtual Descriptor * | describe (const OrientedPoint2D &point, const LaserReading &reading) |
virtual Descriptor * | describe (const InterestPoint &point, const LaserReading &reading) |
unsigned int | getBinPhi () const |
unsigned int | getBinRho () const |
const HistogramDistance< double > * | getDistanceFunction () const |
double | getMaxRho () const |
double | getMinRho () const |
const std::vector< double > & | getPhiEdges () const |
const std::vector< double > & | getRhoEdges () const |
void | setDistanceFunction (const HistogramDistance< double > *distanceFunction) |
void | setEdges (const std::vector< double > &rhoEdges, const std::vector< double > &phiEdges) |
void | setEdges (double minRho, double maxRho, unsigned int binRho, unsigned int binPhi) |
ShapeContextGenerator (const std::vector< double > &rhoEdges, const std::vector< double > &phiEdges) | |
ShapeContextGenerator (double minRho, double maxRho, unsigned int binRho, unsigned int binPhi) | |
Protected Attributes | |
const HistogramDistance< double > * | m_distanceFunction |
std::vector< double > | m_phiEdges |
std::vector< double > | m_rhoEdges |
Representation of the shape context descriptor generator. The class generates the Shape Context descriptor of Belongie et al. It provides the interface to generate the descriptor from a laser reading and set the descriptor size.
Definition at line 82 of file ShapeContext.h.
ShapeContextGenerator::ShapeContextGenerator | ( | double | minRho, | |
double | maxRho, | |||
unsigned int | binRho, | |||
unsigned int | binPhi | |||
) |
Constructor. It sets the size of the generated shape context and the number of bins.
minRho | The minimum distance for a point to be included in the descriptor. | |
maxRho | The maximum distance for a point to be included in the descriptor. | |
binRho | The number of bins in the radial coordinate of the descriptor. | |
binPhi | The number of bins in the angular coordinate of the descriptor. |
Definition at line 3 of file ShapeContext.cpp.
ShapeContextGenerator::ShapeContextGenerator | ( | const std::vector< double > & | rhoEdges, | |
const std::vector< double > & | phiEdges | |||
) |
Constructor. It sets the size of the generated shape context and the number of bins.
rhoEdges | Vector containing the edges of the radial coordinate of the desciptor. | |
phiEdges | Vector containing the edges of the angular coordinate of the desciptor. |
Definition at line 8 of file ShapeContext.cpp.
Descriptor * ShapeContextGenerator::describe | ( | const OrientedPoint2D & | _point, | |
const LaserReading & | reading | |||
) | [virtual] |
Abstract interface for generating a descriptors given a general point in and a laser reading.
Implements DescriptorGenerator.
Definition at line 32 of file ShapeContext.cpp.
Descriptor * ShapeContextGenerator::describe | ( | const InterestPoint & | _point, | |
const LaserReading & | reading | |||
) | [virtual] |
Abstract interface for generating a descriptors given an interest point and a laser reading.
Implements DescriptorGenerator.
Definition at line 28 of file ShapeContext.cpp.
unsigned int ShapeContextGenerator::getBinPhi | ( | ) | const [inline] |
Gets the number of bins in the angular coordinate of the descriptor.
Definition at line 129 of file ShapeContext.h.
unsigned int ShapeContextGenerator::getBinRho | ( | ) | const [inline] |
Gets the number of bins in the radial coordinate of the descriptor.
Definition at line 125 of file ShapeContext.h.
const HistogramDistance<double>* ShapeContextGenerator::getDistanceFunction | ( | ) | const [inline] |
Gets the distance function used to compare two descriptors
Definition at line 152 of file ShapeContext.h.
double ShapeContextGenerator::getMaxRho | ( | ) | const [inline] |
Gets the maximum distance for a point to be included in the descriptor.
Definition at line 121 of file ShapeContext.h.
double ShapeContextGenerator::getMinRho | ( | ) | const [inline] |
Gets the minimum distance for a point to be included in the descriptor.
Definition at line 117 of file ShapeContext.h.
const std::vector<double>& ShapeContextGenerator::getPhiEdges | ( | ) | const [inline] |
Gets the vector containing the edges of the angular coordinate of the desciptor.
Definition at line 137 of file ShapeContext.h.
const std::vector<double>& ShapeContextGenerator::getRhoEdges | ( | ) | const [inline] |
Gets the vector containing the edges of the radial coordinate of the desciptor.
Definition at line 133 of file ShapeContext.h.
void ShapeContextGenerator::setDistanceFunction | ( | const HistogramDistance< double > * | distanceFunction | ) | [inline] |
Sets the distance function used to compare two descriptors
Definition at line 156 of file ShapeContext.h.
void ShapeContextGenerator::setEdges | ( | const std::vector< double > & | rhoEdges, | |
const std::vector< double > & | phiEdges | |||
) | [inline] |
Sets the radial and angular edges of the descriptor.
rhoEdges | Vector containing the edges of the radial coordinate of the desciptor. | |
phiEdges | Vector containing the edges of the angular coordinate of the desciptor. |
Definition at line 148 of file ShapeContext.h.
void ShapeContextGenerator::setEdges | ( | double | minRho, | |
double | maxRho, | |||
unsigned int | binRho, | |||
unsigned int | binPhi | |||
) |
Sets the radial and angular edges of the descriptor.
minRho | The minimum distance for a point to be included in the descriptor. | |
maxRho | The maximum distance for a point to be included in the descriptor. | |
binRho | The number of bins in the radial coordinate of the descriptor. | |
binPhi | The number of bins in the angular coordinate of the descriptor. |
Definition at line 15 of file ShapeContext.cpp.
const HistogramDistance<double>* ShapeContextGenerator::m_distanceFunction [protected] |
The distance function used to compare two descriptors
Definition at line 162 of file ShapeContext.h.
std::vector<double> ShapeContextGenerator::m_phiEdges [protected] |
The vector containing the edges of the angular coordinate of the desciptor.
Definition at line 161 of file ShapeContext.h.
std::vector<double> ShapeContextGenerator::m_rhoEdges [protected] |
The vector containing the edges of the radial coordinate of the desciptor.
Definition at line 160 of file ShapeContext.h.