30 #include <mln/core/image/image2d.hh>
31 #include <mln/core/alias/neighb2d.hh>
32 #include <mln/io/pbm/load.hh>
33 #include <scribo/core/def/lbl_type.hh>
34 #include <scribo/primitive/extract/components.hh>
35 #include <scribo/primitive/link/with_single_left_link.hh>
36 #include <scribo/filter/object_links_top_aligned.hh>
38 #include "tests/data.hh"
42 using namespace scribo;
45 std::string img = SCRIBO_IMG_DIR
"/phillip.pbm";
47 const unsigned ref[] = { 0, 2, 6, 8, 3, 4, 6, 9, 2, 4 };
48 const unsigned filtered_ref[] = { 0, 1, 2, 3, 3, 4, 6, 7, 8, 9 };
62 for_all_links(l, links)
63 mln_assertion(links(l) == ref[l]);
67 for_all_links(l, links)
68 mln_assertion(links(l) == filtered_ref[l]);