Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
doc/examples/tuto3/println.cc
1 #include <mln/core/image/image2d.hh>
2 #include <mln/data/fill.hh>
3 #include <mln/border/fill.hh>
4 #include <mln/value/int_u8.hh>
5 #include <mln/debug/println.hh>
6 #include <mln/debug/println_with_border.hh>
7 
8 #include <doc/tools/sample_utils.hh>
9 
10 int main()
11 {
12  using namespace mln;
13  using namespace mln::value;
14 
15  {
16  doc::begin_output();
17  // \{
18  image2d<int_u8> ima(5,5);
19  data::fill(ima, 2);
20  debug::println(ima);
21  // \}
22  doc::end_output();
23  }
24 
25  {
26  doc::begin_output();
27  // \{
28  image2d<int_u8> ima(5,5);
29  data::fill(ima, 2);
30  border::fill(ima, 7);
32  // \}
33  doc::end_output();
34  }
35 }