ima-load.cc 417 Bytes
Newer Older
1
2
#include <mln/core/image/image2d.hh>
#include <mln/io/pbm/load.hh>
3
4
5

#include "doc/tools/data.hh"

6
7
int main()
{
Guillaume Lazzara's avatar
Guillaume Lazzara committed
8
  using namespace mln;
9
10
11
  /* FIXME: MLN_DOC_DIR looks probably confusing in the
     documentation...  But we have to handle parallel builds.  Maybe a
     solution could be to prepare the the build dir for data? */
Guillaume Lazzara's avatar
Guillaume Lazzara committed
12
13
  // \{
  image2d<bool> ima;
14
  io::pbm::load(ima, MLN_DOC_DIR "/img/small.pbm");
Guillaume Lazzara's avatar
Guillaume Lazzara committed
15
  // \}
16
}