$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ima2d-1.cc
1 #include <mln/core/image/image2d.hh>
2 int main()
3 {
4  using namespace mln;
5 
6  // \{
7  // Define a box2d from (-2,-3) to (3,5).
8  box2d b = make::box2d(-2,-3, 3,5);
9  // Initialize an image with b as domain.
10  image2d<int> ima(b);
11 
12  std::cout << "b = " << b << std::endl;
13  std::cout << "domain = " << ima.domain() << std::endl;
14  // \}
15 }