26 #include <mln/core/image/edge_image.hh>
27 #include <mln/morpho/opening/area_on_vertices.hh>
28 #include <mln/util/graph.hh>
29 #include <mln/fun/i2v/array.hh>
31 #include "tests/data.hh"
34 const unsigned result[] = { 100, 101, 101 };
46 fun::i2v::array<unsigned> f(5);
47 for (
unsigned i = 0; i < 5; ++i)
51 typedef e_ima_t::nbh_t nbh_t;
54 e_ima_t clo = morpho::opening::area_on_vertices(e_ima, nbh, 3);
57 mln_piter_(e_ima_t) p(clo.domain());
59 mln_assertion(result[i++] == clo(p));