* src/binarization/sauvola.cc: Initialize ImageMagick.
* src/binarization/sauvola_ms.cc: Fix maximum argument count.
---
scribo/ChangeLog | 8 ++++++++
scribo/src/binarization/sauvola.cc | 6 ++++--
scribo/src/binarization/sauvola_ms.cc | 2 +-
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 085c480..da1944c 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,13 @@
2011-01-13 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Fix examples.
+
+ * src/binarization/sauvola.cc: Initialize ImageMagick.
+
+ * src/binarization/sauvola_ms.cc: Fix maximum argument count.
+
+2011-01-13 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Add missing distributed files.
* Makefile.am: Add EXTRA_DIST.
diff --git a/scribo/src/binarization/sauvola.cc b/scribo/src/binarization/sauvola.cc
index 3969524..0273071 100644
--- a/scribo/src/binarization/sauvola.cc
+++ b/scribo/src/binarization/sauvola.cc
@@ -1,5 +1,5 @@
-// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
-// (LRDE)
+// Copyright (C) 2009, 2010, 2011 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -54,6 +54,8 @@ int main(int argc, char *argv[])
"input.* output.pbm <w> <k>",
args_desc);
+ Magick::InitializeMagick(*argv);
+
trace::entering("main");
unsigned w;
diff --git a/scribo/src/binarization/sauvola_ms.cc
b/scribo/src/binarization/sauvola_ms.cc
index 0b001f2..541b9e5 100644
--- a/scribo/src/binarization/sauvola_ms.cc
+++ b/scribo/src/binarization/sauvola_ms.cc
@@ -38,7 +38,7 @@
bool check_args(int argc, char * argv[])
{
- if (argc < 3 || argc > 6)
+ if (argc < 3 || argc > 7)
return false;
if (argc >= 5)
--
1.5.6.5