26 #ifndef MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
27 # define MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH
33 # include <mln/core/concept/image.hh>
34 # include <mln/data/paste_without_localization.hh>
35 # include <mln/geom/nsites.hh>
36 # include <mln/world/inter_pixel/is_pixel.hh>
59 # ifndef MLN_INCLUDE_ONLY
66 mln_trace(
"world::inter_pixel::full2image");
68 mlc_is_a(mln_domain(I), Box)::check();
70 const I& input =
exact(input_);
71 mln_precondition(input.is_valid());
73 mln_domain(I) b(input.domain().pmin() / 2,
74 input.domain().pmax() / 2);
75 mln_concrete(I) output(b);
76 mln_assertion(geom::
nsites(output) == geom::
nsites(input | is_pixel()));
84 # endif // ! MLN_INCLUDE_ONLY
93 #endif // ! MLN_WORLD_INTER_PIXEL_FULL2IMAGE_HH