32 #ifndef MLN_GEOM_CROP_WITHOUT_LOCALIZATION_HH
33 # define MLN_GEOM_CROP_WITHOUT_LOCALIZATION_HH
35 # include <mln/core/concept/image.hh>
36 # include <mln/core/concept/box.hh>
37 # include <mln/data/paste_without_localization.hh>
50 template <
typename I,
typename B>
52 const Box<B>& b_in, const Box<B>& b_out);
55 # ifndef MLN_INCLUDE_ONLY
57 template <
typename I,
typename B>
60 const Box<B>& b_in_, const Box<B>& b_out_)
62 mln_trace(
"mln::geom::crop_without_localization");
64 const I& input =
exact(input_);
65 const B& b_in =
exact(b_in_);
66 const B& b_out =
exact(b_out_);
67 mln_precondition(input.is_valid());
68 mln_precondition(b_in.is_valid());
69 mln_precondition(b_out.is_valid());
70 mln_precondition(b_in <= input.domain());
71 mln_precondition(b_in.nsites() == b_out.nsites());
73 mln_concrete(I) output(b_out);
80 # endif // ! MLN_INCLUDE_ONLY
86 #endif // ! MLN_GEOM_CROP_WITHOUT_LOCALIZATION_HH