summaryrefslogtreecommitdiff
path: root/steer_accumulator.h
diff options
context:
space:
mode:
authorFlorian Jung <florian.a.jung@web.de>2012-12-05 00:49:07 +0100
committerFlorian Jung <florian.a.jung@web.de>2012-12-05 00:49:07 +0100
commitcab69fa1ae5f747e64fff506742e9b796668212b (patch)
treec27919db7ffd102b9f3434c32afe31dbd0a42904 /steer_accumulator.h
parent87a62c067dfa50f62a58503cdbec7be30241f032 (diff)
horizon steerer lenkt jetzt wirklich. teils schlechter, teils besser.
Diffstat (limited to 'steer_accumulator.h')
-rw-r--r--steer_accumulator.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/steer_accumulator.h b/steer_accumulator.h
index 94ba082..cd0299d 100644
--- a/steer_accumulator.h
+++ b/steer_accumulator.h
@@ -34,14 +34,21 @@ class SteerAccumulator : SteerIface
public:
virtual ~SteerAccumulator() {};
- void add_steerer(SteerIface* steerer);
+ void add_steerer(SteerIface* steerer, double weight=1.0);
virtual void process_image(const Mat& img);
virtual double get_steer_data();
virtual double get_confidence();
private:
- std::list<SteerIface*> steerers;
+ struct entry
+ {
+ SteerIface* st;
+ double weight;
+
+ entry(SteerIface* s, double w) { st=s; weight=w; }
+ };
+ std::list<entry> steerers;
};
#endif