26 #ifndef MLN_GEOM_DELTA_HH
27 # define MLN_GEOM_DELTA_HH
34 # include <mln/core/concept/window.hh>
35 # include <mln/core/concept/weighted_window.hh>
36 # include <mln/core/concept/neighborhood.hh>
47 unsigned delta(
const Window<W>& win);
51 unsigned delta(
const Weighted_Window<W>& wwin);
55 unsigned delta(
const Neighborhood<N>& nbh);
59 # ifndef MLN_INCLUDE_ONLY
65 unsigned delta_dispatch(trait::window::support::any,
66 trait::window::definition::any,
74 unsigned delta_dispatch(trait::window::support::regular,
75 trait::window::definition::varying,
83 unsigned delta_dispatch(trait::window::support::regular,
84 trait::window::definition::any,
98 mln_precondition(exact(win).is_valid());
99 return internal::delta_dispatch(mln_trait_window_support(W)(),
100 mln_trait_window_definition(W)(),
104 template <
typename W>
107 mln_precondition(exact(wwin).is_valid());
108 return delta(exact(wwin).win());
111 template <
typename N>
114 mln_precondition(exact(nbh).is_valid());
115 return delta(exact(nbh).win());
118 # endif // ! MLN_INCLUDE_ONLY
125 #endif // ! MLN_GEOM_DELTA_HH