mimas::pol_locator_hough Class Reference
[Hough Transformation]

The pol locator class. More...

#include <pol_locator_hough.h>

Inheritance diagram for mimas::pol_locator_hough:

Inheritance graph
[legend]
Collaboration diagram for mimas::pol_locator_hough:

Collaboration graph
[legend]
List of all members.

Public Types

typedef boost::numeric::ublas::vector<
double
Vector

Public Member Functions

 pol_locator_hough ()
 pol_locator_hough (double t)
 ~pol_locator_hough ()
virtual void init (int numdims,...)
 Provide the standard interface defined functions.
virtual void addEntry (double weight,...)
virtual pol_match_ptr_list getMatches ()
void setOffset (double dx, double dy)

Protected Member Functions

int calcGaussBoxSize (double sigma, double accuracy)
 as in hough_transform.cc.
void setLocation (int x, int y, double ca, double sa)
 make an entry at position x,y with weight w and angle a ca = w*cos(a) and sa = w*sin(a)
void initFastGauss (double sigma, double precision)
 in order to plot gauss points faster, we calculate the required distribution first.
void addGaussPointFast (const Vector &posn, double w, double angle)
 plot a point as position posn with weight 'w' and angle 'angle' replaced by addEntry now 200212

Protected Attributes

image< double > * bell_curve
 gauss curve. used to speed up plotting entries.
double thres
 used to separate 'peaks' from the background noise. value depends on number of lines in the model
double ox
double oy

Detailed Description

The pol locator class.

An image of pol_angle pixels. Essentially a hough transform used to assimilate estimates of the possible position and orientation of a model in a scene.

Definition at line 91 of file pol_locator_hough.h.


Member Typedef Documentation

typedef boost::numeric::ublas::vector< double > mimas::pol_locator_hough::Vector

Definition at line 99 of file pol_locator_hough.h.


Constructor & Destructor Documentation

mimas::pol_locator_hough::pol_locator_hough (  )  [inline]

Definition at line 100 of file pol_locator_hough.h.

mimas::pol_locator_hough::pol_locator_hough ( double  t  )  [inline]

Definition at line 103 of file pol_locator_hough.h.

mimas::pol_locator_hough::~pol_locator_hough (  )  [inline]

Definition at line 107 of file pol_locator_hough.h.

References bell_curve.


Member Function Documentation

int mimas::pol_locator_hough::calcGaussBoxSize ( double  sigma,
double  accuracy 
) [protected]

as in hough_transform.cc.

used to calculate the size of the gaussian dist. required to represent a curve with sigma 'sigma' to the accuracy given

void mimas::pol_locator_hough::setLocation ( int  x,
int  y,
double  ca,
double  sa 
) [protected]

make an entry at position x,y with weight w and angle a ca = w*cos(a) and sa = w*sin(a)

void mimas::pol_locator_hough::initFastGauss ( double  sigma,
double  precision 
) [protected]

in order to plot gauss points faster, we calculate the required distribution first.

this assumes that all points will be equally accurate, but it's fast.

void mimas::pol_locator_hough::addGaussPointFast ( const Vector posn,
double  w,
double  angle 
) [protected]

plot a point as position posn with weight 'w' and angle 'angle' replaced by addEntry now 200212

virtual void mimas::pol_locator_hough::init ( int  numdims,
  ... 
) [virtual]

Provide the standard interface defined functions.

Implements mimas::pol_locator.

Reimplemented in mimas::pol_locator_scale.

virtual void mimas::pol_locator_hough::addEntry ( double  weight,
  ... 
) [virtual]

Implements mimas::pol_locator.

Reimplemented in mimas::pol_locator_scale.

virtual pol_match_ptr_list mimas::pol_locator_hough::getMatches (  )  [virtual]

Implements mimas::pol_locator.

Reimplemented in mimas::pol_locator_scale.

void mimas::pol_locator_hough::setOffset ( double  dx,
double  dy 
) [inline]

Definition at line 153 of file pol_locator_hough.h.

References ox, and oy.


Member Data Documentation

image<double>* mimas::pol_locator_hough::bell_curve [protected]

gauss curve. used to speed up plotting entries.

Definition at line 94 of file pol_locator_hough.h.

Referenced by ~pol_locator_hough().

double mimas::pol_locator_hough::thres [protected]

used to separate 'peaks' from the background noise. value depends on number of lines in the model

Definition at line 95 of file pol_locator_hough.h.

double mimas::pol_locator_hough::ox [protected]

Definition at line 96 of file pol_locator_hough.h.

Referenced by setOffset().

double mimas::pol_locator_hough::oy [protected]

Definition at line 96 of file pol_locator_hough.h.

Referenced by setOffset().


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:43 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...