Milena (Olena)
User documentation 2.0a Id
Main Page
Related Pages
Modules
Namespaces
Classes
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerator
Groups
Pages
point-1.cc
1
#include <mln/core/image/image2d.hh>
2
#include <mln/make/box2d.hh>
3
4
int
main()
5
{
6
using namespace
mln;
7
8
// \{
9
// Create an image on a 2D box
10
// with 10 columns and 10 rows.
11
image2d<bool>
ima(
make::box2d
(10, 10));
12
13
mln_site_(
image2d<bool>
) p1(20, 20);
14
mln_site_(
image2d
<
bool
>) p2(3, 3);
15
16
std::cout << "has(p1)? "
17
<< (ima.has(p1) ? "true" : "false")
18
<< std::endl;
19
20
std::cout << "has(p2)? "
21
<< (ima.has(p2) ? "true" : "false")
22
<< std::endl;
23
// \}
24
}
doc
examples
point-1.cc
Generated on Thu Nov 8 2012 10:58:18 for Milena (Olena) by
1.8.2-20120930