26 #ifndef MLN_ACCU_MAJ_H_HH
27 # define MLN_ACCU_MAJ_H_HH
34 # include <mln/core/concept/meta_accumulator.hh>
35 # include <mln/accu/internal/base.hh>
36 # include <mln/trait/value_.hh>
37 # include <mln/util/pix.hh>
38 # include <mln/accu/histo.hh>
57 struct maj_h :
public mln::accu::internal::base< const T& , maj_h<T> >
66 void take(
const argument& t);
67 void untake(
const argument& t);
93 template <
typename I>
struct maj_h< util::pix<I> >;
103 template <
typename T>
114 # ifndef MLN_INCLUDE_ONLY
116 template <
typename T>
126 template <
typename T>
134 template <
typename T>
146 template <
typename T>
149 maj_h<T>::untake(
const argument& t)
157 template <
typename T>
160 maj_h<T>::take(
const maj_h<T>& other)
168 template <
typename T>
171 maj_h<T>::update_()
const
173 const std::vector<unsigned>& v = h_.vect();
175 for(
unsigned i = 0; i != v.size(); i++)
184 template <
typename T>
194 template <
typename T>
202 template <
typename V>
210 # endif // ! MLN_INCLUDE_ONLY
217 #endif // ! MLN_ACCU_MAJ_H_HH