26 #include <mln/core/image/image2d.hh>
27 #include <mln/core/image/dmorph/sub_image.hh>
30 #include <mln/data/fill.hh>
31 #include <mln/debug/println.hh>
32 #include <mln/core/alias/w_window2d_int.hh>
33 #include <mln/core/alias/w_window2d_float.hh>
35 #include <mln/make/win_chamfer.hh>
36 #include <mln/geom/chamfer.hh>
37 #include <mln/data/compare.hh>
39 #include <mln/opt/at.hh>
56 {16, 14, 12, 10, 8, 10, 12, 14, 16},
57 {14, 12, 10, 8, 6, 8, 10, 12, 14},
58 {12, 10, 8, 6, 4, 6, 8, 10, 12},
59 {10, 8, 6, 4, 2, 4, 6, 8, 10},
60 { 8, 6, 4, 2, 0, 2, 4, 6, 8},
61 {10, 8, 6, 4, 2, 4, 6, 8, 10},
62 {12, 10, 8, 6, 4, 6, 8, 10, 12},
63 {14, 12, 10, 8, 6, 8, 10, 12, 14},
64 {16, 14, 12, 10, 8, 10, 12, 14, 16}
68 mln_assertion (out == ref);
79 {12, 11, 10, 9, 8, 9, 10, 11, 12},
80 {11, 9, 8, 7, 6, 7, 8, 9, 11},
81 {10, 8, 6, 5, 4, 5, 6, 8, 10},
82 { 9, 7, 5, 3, 2, 3, 5, 7, 9},
83 { 8, 6, 4, 2, 0, 2, 4, 6, 8},
84 { 9, 7, 5, 3, 2, 3, 5, 7, 9},
85 {10, 8, 6, 5, 4, 5, 6, 8, 10},
86 {11, 9, 8, 7, 6, 7, 8, 9, 11},
87 {12, 11, 10, 9, 8, 9, 10, 11, 12}
91 mln_assertion (out == ref);
97 const w_window2d_int& w_win = make::mk_chamfer_5x5_int<4, 6, 9> ();
105 {12, 10, 9, 8, 8, 8, 9, 10, 12},
106 {10, 9, 7, 6, 6, 6, 7, 9, 10},
107 { 9, 7, 6, 4, 4, 4, 6, 7, 9},
108 { 8, 6, 4, 3, 2, 3, 4, 6, 8},
109 { 8, 6, 4, 2, 0, 2, 4, 6, 8},
110 { 8, 6, 4, 3, 2, 3, 4, 6, 8},
111 { 9, 7, 6, 4, 4, 4, 6, 7, 9},
112 {10, 9, 7, 6, 6, 6, 7, 9, 10},
113 {12, 10, 9, 8, 8, 8, 9, 10, 12}
117 mln_assertion (out == ref);