Milena (Olena)
User documentation 2.0a Id
Main Page
Related Pages
Modules
Namespaces
Classes
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerator
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
}
doc
examples
paste-call-1.cc
Generated on Thu Nov 8 2012 10:58:18 for Milena (Olena) by
1.8.2-20120930