Fawkes API
Fawkes Development Version
|
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... | |
Hough-Transform accumulator.
Definition at line 125 of file ht_accum.h.
firevision::RhtAccumulator::RhtAccumulator | ( | ) |
Constructor.
Definition at line 482 of file ht_accum.cpp.
firevision::RhtAccumulator::~RhtAccumulator | ( | ) |
Destructor.
Definition at line 490 of file ht_accum.cpp.
References firevision::RhtRNode::cleanup(), firevision::RhtYNode::cleanup(), and firevision::RhtXNode::cleanup().
int firevision::RhtAccumulator::accumulate | ( | int | x, |
int | y, | ||
int | r | ||
) |
Accumulate new candidate.
x | x |
y | y |
r | r |
Definition at line 518 of file ht_accum.cpp.
References firevision::RhtRNode::count, firevision::RhtXNode::generate(), and firevision::RhtRNode::r.
void firevision::RhtAccumulator::dump | ( | std::ostream & | s | ) |
int firevision::RhtAccumulator::getMax | ( | int & | x, |
int & | y, | ||
int & | r | ||
) | const |
Get maximum.
x | x return value |
y | y return value |
r | r return value |
Definition at line 542 of file ht_accum.cpp.
vector< vector< int > > * firevision::RhtAccumulator::getNodes | ( | int | min_votes | ) |
unsigned int firevision::RhtAccumulator::getNumVotes | ( | ) | const |
void firevision::RhtAccumulator::reset | ( | void | ) |
Reset.
Definition at line 500 of file ht_accum.cpp.
References firevision::RhtRNode::reset(), firevision::RhtYNode::reset(), and firevision::RhtXNode::reset().