26 #ifndef MLN_GRAPH_TO_WIN_HH
27 # define MLN_GRAPH_TO_WIN_HH
33 # include <mln/core/concept/image.hh>
34 # include <mln/core/image/graph_elt_window_if.hh>
48 template <
typename I,
typename M>
50 to_win(
const Image<I>& graph_image_,
const Image<M>& graph_mask_image_);
53 # ifndef MLN_INCLUDE_ONLY
55 template <
typename I,
typename M>
59 trace::entering(
"graph::to_win");
61 const I& graph_image = exact(graph_image_);
62 const M& graph_mask_image = exact(graph_mask_image_);
64 mln_precondition(graph_image.is_valid());
65 mln_precondition(graph_mask_image.is_valid());
66 mlc_equal(mln_value(M),
bool)::check();
69 win_t win(graph_mask_image);
71 trace::exiting(
"graph::to_win");
75 # endif // ! MLN_INCLUDE_ONLY
82 #endif // ! MLN_GRAPH_TO_WIN_HH