• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List

paste-call-1.cc

00001 #include <mln/core/image/image2d.hh>
00002 
00003 #include <mln/make/box2d.hh>
00004 
00005 #include <mln/data/fill.hh>
00006 #include <mln/data/paste.hh>
00007 
00008 #include <mln/debug/println.hh>
00009 
00010 int main()
00011 {
00012   using namespace mln;
00013 
00014   // \{
00015   image2d<unsigned char> imgb(make::box2d(5,5, 7,8));
00016   // Initialize imga with the same domain as imgb.
00017   image2d<unsigned char> imga(imgb.domain());
00018 
00019   // Initialize the image values.
00020   data::fill(imgb, 'b');
00021 
00022   // Paste the content of imgb in imga.
00023   data::paste(imgb, imga);
00024 
00025   debug::println(imga);
00026   // \}
00027 }

Generated on Tue Oct 4 2011 15:24:18 for Milena (Olena) by  doxygen 1.7.1