getquad-cli.cpp 340 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <mln/core/image/image2d.hpp>
#include <mln/io/imread.hpp>
#include "getquad.hpp"


int main(int argc, char** argv)
{
  using namespace mln;

  if (argc < 3) {
    std::cerr << "Usage: " << argv[0] << " input(binary).tiff output.png\n";
    std::exit(1);
  }


  image2d<bool> f;
  io::imread(argv[1], f);

  getquad(f, argv[2]);
}