30 #ifndef TESTS_CORE_IMAGE_COMPLEX_IMAGE_HH
31 # define TESTS_CORE_IMAGE_COMPLEX_IMAGE_HH
33 # include <mln/core/image/complex_image.hh>
34 # include <mln/core/alias/complex_image.hh>
35 # include <mln/value/int_u8.hh>
37 # include <mln/data/fill.hh>
40 # include <mln/core/site_set/p_faces.hh>
45 make_test_complex_image()
135 mln::faces_psite<0, D, G> fs0(pf0, v0);
136 mln::faces_psite<1, D, G> fs1(pf1, e0);
137 mln::faces_psite<2, D, G> fs2(pf2, t0);
151 mln::metal::vec<D + 1, std::vector< int_u8 > > values;
153 for (
unsigned d = 0; d <= D; ++d)
154 for (
unsigned n = 0; n < pc.cplx().nfaces_of_dim(d); ++n)
155 values[d].push_back(d);
158 ima_t ima(pc, values);
161 mln_postcondition(ima(cs) == 1u);
170 mln::bin_2complex_image2d
171 make_test_bin_2complex_image2d()
174 mln::bin_2complex_image2d ima;
180 #endif // ! TESTS_CORE_IMAGE_COMPLEX_IMAGE_HH