27 #ifndef MLN_CONVERT_TO_IMAGE_HH
28 # define MLN_CONVERT_TO_IMAGE_HH
34 # include <mln/trait/image_from_grid.hh>
36 # include <mln/core/concept/site_set.hh>
37 # include <mln/core/concept/window.hh>
38 # include <mln/core/concept/weighted_window.hh>
39 # include <mln/core/concept/neighborhood.hh>
41 # include <mln/geom/bbox.hh>
42 # include <mln/data/fill.hh>
43 # include <mln/histo/array.hh>
45 # include <mln/core/image/image1d.hh>
46 # include <mln/core/image/image2d.hh>
47 # include <mln/core/image/image3d.hh>
48 # include <mln/convert/from_to.hh>
86 # ifndef MLN_INCLUDE_ONLY
92 const S& pset =
exact(pset_);
102 template <
typename W>
106 mln_is_simple_window(W)::check();
107 mln_precondition(
exact(win).is_valid());
113 template <typename W>
117 mln_is_simple_window(W)::check();
118 mln_precondition(
exact(w_win).is_valid());
124 template <typename N>
128 mln_precondition(
exact(nbh).is_valid());
132 template <
typename T>
137 n =
static_cast<def::coord>(h.vset().nvalues()),
138 v_min = static_cast<def::coord>(h.vset()[0]),
139 v_max = static_cast<def::coord>(h.vset()[n - 1]);
146 # endif // ! MLN_INCLUDE_ONLY
153 #endif // ! MLN_CONVERT_TO_IMAGE_HH