$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
paste-call-1.cc
1 #include <mln/core/image/image2d.hh>
2 
3 #include <mln/make/box2d.hh>
4 
5 #include <mln/data/fill.hh>
6 #include <mln/data/paste.hh>
7 
8 #include <mln/debug/println.hh>
9 
10 int main()
11 {
12  using namespace mln;
13 
14  // \{
15  image2d<unsigned char> imgb(make::box2d(5,5, 7,8));
16  // Initialize imga with the same domain as imgb.
17  image2d<unsigned char> imga(imgb.domain());
18 
19  // Initialize the image values.
20  data::fill(imgb, 'b');
21 
22  // Paste the content of imgb in imga.
23  data::paste(imgb, imga);
24 
25  debug::println(imga);
26  // \}
27 }