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

ima-save.cc

00001 #include <mln/core/image/image2d.hh>
00002 #include <mln/io/pbm/save.hh>
00003 #include <mln/make/image.hh>
00004 
00005 #include "doc/tools/data.hh"
00006 
00007 int main()
00008 {
00009   using namespace mln;
00010 
00011   bool vals[5][5] = {
00012     {1, 0, 1, 0, 0},
00013     {0, 1, 0, 1, 0},
00014     {1, 0, 1, 0, 0},
00015     {0, 1, 0, 1, 0},
00016     {0, 1, 0, 1, 0}
00017   };
00018   image2d<bool> ima = make::image(vals);
00019 
00020   /* FIXME: MLN_DOC_DIR looks probably confusing in the
00021      documentation...  But we have to handle parallel builds.  Maybe a
00022      solution could be to prepare the the build dir for data? */
00023   // \{
00024   io::pbm::save(ima, MLN_DOC_DIR "/figures/ima_save.pbm");
00025   // \}
00026 }

Generated on Fri Sep 16 2011 16:33:37 for Milena (Olena) by  doxygen 1.7.1