26 #include <mln/core/image/edge_image.hh>
27 #include <mln/core/image/vertex_image.hh>
29 #include <mln/core/image/graph_elt_neighborhood_if.hh>
31 #include <mln/data/fill.hh>
33 #include <mln/util/graph.hh>
35 #include <mln/value/label_8.hh>
37 #include <mln/fun/i2v/array.hh>
39 #include <mln/graph/labeling.hh>
40 #include <mln/graph/to_neighb.hh>
44 static const unsigned result[] = { 1, 2, 2, 3, 2, 3 };
100 mln_piter_(e_mask_t) em(e_mask.domain());
102 e_mask(em) = em.
id()%2;
105 nbh_t nbh = graph::to_neighb(v_ima, e_mask);
107 value::label_8 nlabels;
108 typedef mln_ch_value_(v_ima_t,
value::label_8) lbl_t;
109 lbl_t lbl = graph::
labeling(v_ima, nbh, nlabels);
112 mln_piter_(lbl_t)
p(lbl.domain());
114 mln_assertion(result[i++] == lbl(
p));