24 #include <fvmodels/shape/accumulators/ht_accum.h>
28 namespace firevision {
33 RhtXNode* RhtXNode::reuse_head = NULL;
34 RhtYNode* RhtYNode::reuse_head = NULL;
35 RhtRNode* RhtRNode::reuse_head = NULL;
37 RhtXNode* RhtXNode::reuse_tail = NULL;
38 RhtYNode* RhtYNode::reuse_tail = NULL;
39 RhtRNode* RhtRNode::reuse_tail = NULL;
62 RhtAccNode::RhtAccNode()
64 left = right = next = NULL;
69 RhtAccNode::~RhtAccNode()
77 RhtAccNode::clear(
int ignore)
86 RhtXNode::RhtXNode(
int x)
163 if (reuse_tail == NULL)
166 p->
next = reuse_head;
195 reuse_tail = reuse_head;
207 reuse_head = reuse_tail;
294 if (reuse_tail == NULL)
297 p->
next = reuse_head;
326 reuse_tail = reuse_head;
338 reuse_head = reuse_tail;
397 if (
count >= min_votes) {
402 node.push_back(
count );
403 rv->push_back( node );
421 s <<
"("<<x<<
","<<y<<
","<<
r<<
") with vote "<<
count<<endl;
434 if (reuse_tail == NULL)
437 p->
next = reuse_head;
465 reuse_tail = reuse_head;
476 reuse_head = reuse_tail;
524 int count = root->
insert(x, y, r);
575 vector< vector< int > > *
578 vector< vector< int > > *rv =
new vector< vector< int > >();
580 if ( (min_votes <= num_votes) && (root != NULL) ) {