26 #include <mln/core/image/image2d.hh>
27 #include <mln/core/alias/neighb2d.hh>
28 #include <mln/value/int_u8.hh>
29 #include <mln/data/fill.hh>
30 #include <mln/debug/println.hh>
31 #include <mln/opt/at.hh>
32 #include <mln/data/compare.hh>
34 #include <mln/transform/distance_and_closest_point_geodesic.hh>
36 unsigned dmap_ref[] = { 4, 4, 4, 3, 2, 3, 4, 4, 4,
37 4, 4, 3, 2, 1, 2, 3, 4, 4,
38 4, 3, 2, 1, 0, 1, 2, 3, 4,
39 3, 2, 1, 2, 1, 2, 3, 4, 4,
40 2, 1, 0, 1, 2, 3, 4, 4, 4,
41 3, 2, 1, 2, 3, 4, 4, 4, 4,
42 4, 3, 2, 3, 4, 4, 4, 4, 4,
43 4, 4, 3, 4, 4, 4, 4, 4, 4,
44 4, 4, 4, 4, 4, 4, 4, 4, 4 };
47 unsigned cp_idx_ref[] = { 2, 2, 0, 0, 0, 0, 0, 2, 2,
48 2, 0, 0, 0, 0, 0, 0, 0, 2,
49 1, 0, 0, 0, 0, 0, 0, 0, 0,
50 1, 1, 1, 0, 0, 0, 0, 0, 2,
51 1, 1, 1, 1, 0, 0, 0, 2, 2,
52 1, 1, 1, 1, 0, 0, 2, 2, 2,
53 1, 1, 1, 1, 1, 2, 2, 2, 2,
54 2, 1, 1, 1, 2, 2, 2, 2, 2,
55 2, 2, 1, 2, 2, 2, 2, 2, 2 };