29 #include <mln/core/image/image2d.hh>
30 #include <mln/core/alias/neighb2d.hh>
32 #include <mln/topo/skeleton/breadth_first_thinning.hh>
34 #include <mln/topo/is_simple_point2d.hh>
35 #include <mln/topo/detach_point.hh>
37 #include <mln/io/pbm/all.hh>
39 #include <mln/util/timer.hh>
43 main(
int argc,
char* argv[])
49 std::cerr <<
"usage: " << argv[0] <<
" input.pbm output.pbm"
54 std::string input_filename = argv[1];
55 std::string output_filename = argv[2];
67 std::cout << input.nrows() <<
" x " << input.ncols() <<
" = "
68 << input.nrows() * input.ncols() <<
" pixels"
89 std::cout << t.read() <<
" s" << std::endl;