ShapeContextGenerator Class Reference

#include <ShapeContext.h>

Inheritance diagram for ShapeContextGenerator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual Descriptordescribe (const OrientedPoint2D &point, const LaserReading &reading)
virtual Descriptordescribe (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

Detailed Description

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.

Author:
Gian Diego Tipaldi

Definition at line 82 of file ShapeContext.h.


Constructor & Destructor Documentation

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.

Parameters:
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.

Parameters:
rhoEdges Vector containing the edges of the radial coordinate of the desciptor.
phiEdges Vector containing the edges of the angular coordinate of the desciptor.
Note:
A point is in the bin i,j if its radial distance is between rhoEdges[i] and rhoEdges[i + 1] and its angular distance between phiEdges[j] and phiEdges[j + 1]

Definition at line 8 of file ShapeContext.cpp.


Member Function Documentation

Descriptor * ShapeContextGenerator::describe ( const OrientedPoint2D _point,
const LaserReading reading 
) [virtual]

Abstract interface for generating a descriptors given a general point in $ \mathcal{SO}(2) $ 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.

Parameters:
rhoEdges Vector containing the edges of the radial coordinate of the desciptor.
phiEdges Vector containing the edges of the angular coordinate of the desciptor.
Note:
A point is in the bin i,j if its radial distance is between rhoEdges[i] and rhoEdges[i + 1] and its angular distance between phiEdges[j] and phiEdges[j + 1]

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.

Parameters:
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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


flirtlib
Author(s): Bhaskara Marthi, Gian Diego Tipaldi
autogenerated on Fri Jan 11 11:15:48 2013