26 #include <mln/core/image/image2d.hh>
27 #include <mln/canvas/browsing/fwd.hh>
28 #include <mln/fun/p2v/iota.hh>
29 #include <mln/debug/println.hh>
32 template <
typename I_,
typename F>
33 struct assign_browsing_functor
36 typedef mln_site(I) S;
37 enum { dim = S::dim };
42 assign_browsing_functor(I& input, F f = F())
54 mln_assertion(input(p) - 1 == p[0] * input.domain().ncols() +
p[1]);
61 template <
typename I,
typename F,
typename B>
63 const Function_v2v<F>& f_,
64 const Browsing<B>& browse_)
67 const F& f =
exact(f_);
68 const B& browse =
exact(browse_);
70 assign_browsing_functor<I, F> fun(ima, f);