$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ima2d-4.cc
1 #include <mln/core/image/image2d.hh>
2 int main()
3 {
4  using namespace mln;
5  image2d<char> ima1(12, 12);
6  image2d<char> ima2(12, 12);
7 
8  // \{
9  point2d p(9,9);
10 
11  // At (9, 9), both values change.
12  ima1(p) = 'M';
13  ima2(p) = 'W';
14 
15  bool b = (ima1(p) == ima2(p));
16  std::cout << (b ? "True" : "False") << std::endl;
17  // \}
18 }
19