27 #ifndef MLN_CORE_ALIAS_WINDOW1D_HH
28 # define MLN_CORE_ALIAS_WINDOW1D_HH
35 # include <mln/core/window.hh>
36 # include <mln/core/alias/dpoint1d.hh>
37 # include <mln/convert/from_to.hh>
92 typedef window<mln::dpoint1d> window1d;
98 void from_to_(
const bool (&values)[M], window1d& win);
101 # ifndef MLN_INCLUDE_ONLY
103 template <
unsigned M>
105 from_to_(
bool const (&values)[M], window1d& win)
107 mlc_bool(M % 2 == 1)::check();
109 const int h =
int(M) / 2;
111 for (
int ind = - h; ind <= h; ++ind)
116 # endif // ! MLN_INCLUDE_ONLY
121 #endif // ! MLN_CORE_ALIAS_WINDOW1D_HH