Milena (Olena)  User documentation 2.0a Id
ima2d-1.cc
00001 #include <mln/core/image/image2d.hh>
00002 int main()
00003 {
00004   using namespace mln;
00005 
00006   // \{
00007   // Define a box2d from (-2,-3) to (3,5).
00008   box2d b = make::box2d(-2,-3, 3,5);
00009   // Initialize an image with b as domain.
00010   image2d<int> ima(b);
00011 
00012   std::cout << "b = " << b << std::endl;
00013   std::cout << "domain = " << ima.domain() << std::endl;
00014   // \}
00015 }
 All Classes Namespaces Functions Variables Typedefs Enumerator