From cab69fa1ae5f747e64fff506742e9b796668212b Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 5 Dec 2012 00:49:07 +0100 Subject: horizon steerer lenkt jetzt wirklich. teils schlechter, teils besser. --- steer_accumulator.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'steer_accumulator.h') 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 steerers; + struct entry + { + SteerIface* st; + double weight; + + entry(SteerIface* s, double w) { st=s; weight=w; } + }; + std::list steerers; }; #endif -- cgit v1.2.3