27 # include <mln/core/alias/neighb2d.hh>
28 # include <mln/core/image/image2d.hh>
29 # include <mln/data/compare.hh>
30 # include <mln/logical/not.hh>
31 # include <mln/make/image.hh>
32 # include <mln/make/w_window2d_int.hh>
33 # include <mln/topo/skeleton/crest.hh>
34 # include <mln/transform/distance_front.hh>
35 # include <mln/value/int_u8.hh>
41 bool ref_dat[][9] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
42 { 0, 0, 0, 0, 0, 1, 0, 0, 0 },
43 { 0, 0, 0, 0, 1, 1, 0, 0, 0 },
44 { 0, 0, 0, 1, 1, 1, 0, 0, 0 },
45 { 0, 0, 0, 0, 1, 0, 0, 0, 0 },
46 { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
47 { 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
49 bool in_dat[][9] = { { 0, 0, 0, 0, 1, 1, 1, 0, 0 },
50 { 0, 0, 0, 1, 1, 1, 1, 0, 0 },
51 { 0, 0, 1, 1, 1, 1, 1, 1, 1 },
52 { 0, 1, 1, 1, 1, 1, 1, 1, 1 },
53 { 0, 0, 1, 1, 1, 1, 1, 0, 0 },
54 { 0, 0, 0, 1, 1, 1, 1, 0, 0 },
55 { 0, 0, 0, 0, 1, 0, 0, 0, 0 } };
57 int vals[] = { 0, 9, 0, 9, 0,
72 mln_assertion(crest_ima == crest_ref);