$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends 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 }