26 #include <mln/core/image/image2d.hh>
27 #include <mln/core/image/dmorph/sub_image.hh>
28 #include <mln/core/image/dmorph/image_if.hh>
29 #include <mln/fun/p2b/chess.hh>
31 #include <mln/border/get.hh>
32 #include <mln/literal/origin.hh>
33 #include <mln/value/int_u8.hh>
34 #include <mln/value/rgb8.hh>
58 mln::fun::p2b::chess c_b;
62 (std::cerr <<
"Tests border::get on int ... ").flush ();
69 image_if<I, f_box2d_t> imaif(ima, f_b);
73 std::cerr <<
"OK" << std::endl;
79 (std::cerr <<
"Tests border::get on int_u8 ... ").flush ();
82 mln_assertion( ima.has(
point2d(2,2)) == true );
86 image_if<I, mln::fun::p2b::chess > imaif(ima, c_b);
90 std::cerr <<
"OK" << std::endl;
95 (std::cerr <<
"Tests border::get on rgb8 ... ").flush ();
98 mln_assertion( ima.has(
point2d(2,2)) == true );
102 image_if<I, mln::fun::p2b::chess > imaif(ima, c_b);
105 mln_assertion(
border::get( (ima | b) | c_b ) == 0);
106 std::cerr <<
"OK" << std::endl;