last-svn-commit-910-g4543e11 Specify output dir.

--- scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc b/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc index 5309d49..f13b8f6 100644 --- a/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc +++ b/scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc @@ -60,6 +60,7 @@ const char *args_desc[][2] = { { "input.tif", "An image." }, + { "output_dir", "Output directory." }, {0, 0} }; @@ -70,10 +71,10 @@ int main(int argc, char* argv[]) using namespace scribo; using namespace mln; - if (argc != 2) + if (argc != 3) return scribo::debug::usage(argv, "Document Image Analysis in Historical Documents", - "input.tif", + "input.tif output_dir", args_desc); trace::entering("main"); @@ -144,7 +145,7 @@ int main(int argc, char* argv[]) } std::stringstream ss; - ss << basename(argv[1]) << p << ".pbm"; + ss << argv[2] << "/" << basename(argv[1]) << "." << p << ".pbm"; mln::io::pbm::save(output, ss.str()); } -- 1.5.6.5
participants (1)
-
Guillaume Lazzara