26 #ifndef MLN_ACCU_TAKE_HH
27 # define MLN_ACCU_TAKE_HH
33 # include <mln/core/concept/accumulator.hh>
34 # include <mln/core/concept/image.hh>
35 # include <mln/util/pix.hh>
56 template <
typename A,
typename I>
57 void take(
const Image<I>& input, Accumulator<A>& a);
63 # ifndef MLN_INCLUDE_ONLY
68 template <
typename A,
typename I>
70 void take(
const Image<I>& input_, A& a)
72 const I& input =
exact(input_);
73 mln_piter(I)
p(input.domain());
75 a.
take(make::pix(input,
p));
85 template <typename A, typename I>
87 void take(const Image<I>& input, Accumulator<A>& a)
89 mln_precondition(
exact(input).is_valid());
93 # endif // ! MLN_INCLUDE_ONLY
100 #endif // ! MLN_ACCU_TAKE_HH