30 #include <mln/core/image/image2d.hh>
31 #include <mln/core/alias/neighb2d.hh>
32 #include <mln/make/box2d.hh>
34 #include <mln/topo/connectivity_number_2d.hh>
36 #include <mln/data/fill.hh>
38 #include <mln/logical/not.hh>
64 mln_assertion(topo::connectivity_number_2d_c4(ima, p, true) == 4);
65 mln_assertion(topo::connectivity_number_2d_c8(ima, p, true) == 1);
68 ima.at_ (0, 0) = false;
76 mln_assertion(topo::connectivity_number_2d_c4(ima, p, true) == 0);
77 mln_assertion(topo::connectivity_number_2d_c8(ima, p, true) == 4);