diff --git a/modules/img/alg/src/stat_accumulator.hh b/modules/img/alg/src/stat_accumulator.hh index a07d6219e5dae160cb8198f611d5b38e0ccd4838..53399f8be99c0cb4e1a445b38aabfd7252bb4c41 100644 --- a/modules/img/alg/src/stat_accumulator.hh +++ b/modules/img/alg/src/stat_accumulator.hh @@ -27,7 +27,7 @@ namespace ost { namespace img { namespace alg { template<unsigned int MAX_MOMENT=4> -class DLLEXPORT_IMG_ALG StatAccumulator +class StatAccumulator { public: StatAccumulator(): @@ -70,14 +70,14 @@ public: sum2_+=val*val; } - StatAccumulator operator+(const StatAccumulator& acc2) const + StatAccumulator<MAX_MOMENT> operator+(const StatAccumulator<MAX_MOMENT>& acc2) const { - StatAccumulator acc(acc2); + StatAccumulator<MAX_MOMENT> acc(acc2); acc+=*this; return acc; } - StatAccumulator& operator+=(const StatAccumulator& acc) + StatAccumulator<MAX_MOMENT>& operator+=(const StatAccumulator<MAX_MOMENT>& acc) { if(acc.n_==1){ return *this;