Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
morpho_top_hat_black.cc
1 #include <mln/morpho/top_hat.hh>
2 #include <mln/core/alias/neighb2d.hh>
3 #include <mln/io/pgm/all.hh>
4 #include <mln/value/int_u8.hh>
5 #include <mln/win/all.hh>
6 
7 int main(int argc, char *argv[])
8 {
9  using namespace mln;
10 
11  if (argc != 3)
12  {
13  std::cout << argv[0] << " <in.pgm> <out.pgm>" << std::endl;
14  return 1;
15  }
16 
18  io::pgm::load(input, argv[1]);
19 
21 
22  io::pgm::save(output, argv[2]);
23 }