Fawkes API  Fawkes Development Version
firevision::RhtAccumulator Class Reference

Hough-Transform accumulator. More...

#include <>>

Public Member Functions

 RhtAccumulator ()
 Constructor. More...
 
 ~RhtAccumulator ()
 Destructor. More...
 
int accumulate (int x, int y, int r)
 Accumulate new candidate. More...
 
int getMax (int &x, int &y, int &r) const
 Get maximum. More...
 
void dump (std::ostream &)
 Dump. More...
 
void reset (void)
 Reset. More...
 
unsigned int getNumVotes () const
 Get number of votes. More...
 
std::vector< std::vector< int > > * getNodes (int min_count)
 Get nodes. More...
 

Detailed Description

Hough-Transform accumulator.

Definition at line 125 of file ht_accum.h.

Constructor & Destructor Documentation

◆ RhtAccumulator()

firevision::RhtAccumulator::RhtAccumulator ( )

Constructor.

Definition at line 482 of file ht_accum.cpp.

◆ ~RhtAccumulator()

firevision::RhtAccumulator::~RhtAccumulator ( )

Member Function Documentation

◆ accumulate()

int firevision::RhtAccumulator::accumulate ( int  x,
int  y,
int  r 
)

Accumulate new candidate.

Parameters
xx
yy
rr
Returns
count

Definition at line 518 of file ht_accum.cpp.

References firevision::RhtRNode::count, firevision::RhtXNode::generate(), and firevision::RhtRNode::r.

◆ dump()

void firevision::RhtAccumulator::dump ( std::ostream &  s)

Dump.

Parameters
sstream

Definition at line 554 of file ht_accum.cpp.

◆ getMax()

int firevision::RhtAccumulator::getMax ( int &  x,
int &  y,
int &  r 
) const

Get maximum.

Parameters
xx return value
yy return value
rr return value
Returns
max

Definition at line 542 of file ht_accum.cpp.

◆ getNodes()

vector< vector< int > > * firevision::RhtAccumulator::getNodes ( int  min_votes)

Get nodes.

Parameters
min_votesmin votes
Returns
nodes

Definition at line 576 of file ht_accum.cpp.

◆ getNumVotes()

unsigned int firevision::RhtAccumulator::getNumVotes ( ) const

Get number of votes.

Returns
number of votes

Definition at line 565 of file ht_accum.cpp.

◆ reset()

void firevision::RhtAccumulator::reset ( void  )

The documentation for this class was generated from the following files: