---
scribo/ChangeLog | 4 ++++
scribo/src/contest/DAE-2011/content_in_hdoc_dae.cc | 7 ++++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index e31876d..a2d00e3 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,9 @@
2011-06-07 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * src/contest/DAE-2011/content_in_hdoc_dae.cc: Specify output dir.
+
+2011-06-07 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Add a new example.
* src/util/Makefile.am,
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