26 #include <mln/core/image/image1d.hh>
27 #include <mln/core/image/image2d.hh>
28 #include <mln/core/image/image3d.hh>
29 #include <mln/core/image/dmorph/sub_image.hh>
31 #include <mln/core/image/dmorph/image_if.hh>
32 #include <mln/fun/p2b/chess.hh>
33 #include <mln/border/find.hh>
34 #include <mln/literal/origin.hh>
35 #include <mln/value/int_u8.hh>
36 #include <mln/value/rgb8.hh>
39 #include <mln/debug/iota.hh>
40 #include <mln/border/find.hh>
41 #include <mln/core/routine/duplicate.hh>
98 (std::cerr <<
"Tests border::find on int in 1d ... ").flush ();
110 std::cerr <<
"OK" << std::endl;
115 (std::cerr <<
"Tests border::find on int_u8 in 2d ... ").flush ();
132 mln_assertion(
border::find( (ima | b2) | c_b | f_b2 ) == 42);
133 mln_assertion(
border::find( (ima | b2) | f_b2 | c_b ) == 42);
135 std::cerr <<
"OK" << std::endl;
140 (std::cerr <<
"Tests border::find on rgb8 in 3d ... ").flush ();
141 I ima(10, 10, 10, 36);
143 mln_assertion( ima.has(
point3d(2,2,2)) == true );
151 std::cerr <<
"OK" << std::endl;