Fawkes API
Fawkes Development Version
|
Hough-Transform accumulator node. More...
#include <>>
Public Member Functions | |
RhtXNode (int x) | |
Constructor. More... | |
int | insert (int x, int y, int r) |
Insert node. More... | |
void | dump (std::ostream &) |
Dump to stream. More... | |
void | clear (int x) |
Clear. More... | |
void | getNodes (std::vector< std::vector< int >> *rv, int min_votes) |
Get nodes. More... | |
![]() | |
RhtAccNode () | |
Constructor. More... | |
virtual | ~RhtAccNode () |
Destructor. More... | |
Static Public Member Functions | |
static RhtXNode * | generate (int x) |
Generate. More... | |
static void | reset (void) |
Reset. More... | |
static void | cleanup (void) |
Cleanup. More... | |
Protected Attributes | |
int | x |
x More... | |
RhtYNode * | y_root |
y root More... | |
![]() | |
RhtAccNode * | left |
left More... | |
RhtAccNode * | right |
right More... | |
RhtAccNode * | next |
used for recycling More... | |
Hough-Transform accumulator node.
Definition at line 99 of file ht_accum.h.
firevision::RhtXNode::RhtXNode | ( | int | x | ) |
|
static |
Cleanup.
Definition at line 184 of file ht_accum.cpp.
References firevision::RhtAccNode::next.
Referenced by firevision::RhtAccumulator::~RhtAccumulator().
|
virtual |
Clear.
x | x to clear |
Reimplemented from firevision::RhtAccNode.
Definition at line 168 of file ht_accum.cpp.
References firevision::RhtAccNode::clear(), x, and y_root.
Referenced by generate().
void firevision::RhtXNode::dump | ( | std::ostream & | s | ) |
Dump to stream.
s | stream to dump to. |
Definition at line 135 of file ht_accum.cpp.
References firevision::RhtYNode::dump(), firevision::RhtAccNode::left, firevision::RhtAccNode::right, x, and y_root.
Referenced by firevision::RhtAccumulator::dump().
|
static |
Generate.
x | ? |
Definition at line 149 of file ht_accum.cpp.
References clear(), firevision::RhtAccNode::next, RhtXNode(), and x.
Referenced by firevision::RhtAccumulator::accumulate(), and insert().
void firevision::RhtXNode::getNodes | ( | std::vector< std::vector< int >> * | rv, |
int | min_votes | ||
) |
Get nodes.
rv | return value |
min_votes | minimum nomber of votes |
Definition at line 116 of file ht_accum.cpp.
References firevision::RhtYNode::getNodes(), firevision::RhtAccNode::left, firevision::RhtAccNode::right, x, and y_root.
Referenced by firevision::RhtAccumulator::getNodes().
int firevision::RhtXNode::insert | ( | int | x0, |
int | y0, | ||
int | r0 | ||
) |
Insert node.
x0 | x |
y0 | y |
r0 | r |
Definition at line 94 of file ht_accum.cpp.
References firevision::RhtYNode::generate(), generate(), firevision::RhtYNode::insert(), firevision::RhtAccNode::left, firevision::RhtAccNode::right, x, and y_root.
Referenced by firevision::RhtAccumulator::accumulate().
|
static |
Reset.
Definition at line 177 of file ht_accum.cpp.
Referenced by firevision::RhtAccumulator::reset().
|
protected |
x
Definition at line 112 of file ht_accum.h.
Referenced by clear(), dump(), generate(), getNodes(), insert(), and RhtXNode().
|
protected |
y root
Definition at line 114 of file ht_accum.h.
Referenced by clear(), dump(), getNodes(), insert(), and RhtXNode().