• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List

point-1.cc

00001 #include <mln/core/image/image2d.hh>
00002 #include <mln/make/box2d.hh>
00003 
00004 int main()
00005 {
00006   using namespace mln;
00007 
00008   // \{
00009   // Create an image on a 2D box
00010   // with 10 columns and 10 rows.
00011   image2d<bool> ima(make::box2d(10, 10));
00012 
00013   mln_site_(image2d<bool>) p1(20, 20);
00014   mln_site_(image2d<bool>) p2(3, 3);
00015 
00016   std::cout << "has(p1)? "
00017             << (ima.has(p1) ? "true" : "false")
00018             << std::endl;
00019 
00020   std::cout << "has(p2)? "
00021             << (ima.has(p2) ? "true" : "false")
00022             << std::endl;
00023   // \}
00024 }

Generated on Tue Oct 4 2011 15:24:19 for Milena (Olena) by  doxygen 1.7.1