* src/binarization/sauvola.cc,
* src/binarization/sauvola_ms.cc: Here.
---
scribo/ChangeLog | 7 +++++++
scribo/src/binarization/sauvola.cc | 6 +++---
scribo/src/binarization/sauvola_ms.cc | 6 +++---
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index efcdef1..63ec1b9 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,10 @@
+2012-09-10 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ Use io::magick for sauvola binaries output.
+
+ * src/binarization/sauvola.cc,
+ * src/binarization/sauvola_ms.cc: Here.
+
2012-08-23 Guillaume Lazzara <z(a)lrde.epita.fr>
* tests/unit_test/unit-tests.mk: Regen.
diff --git a/scribo/src/binarization/sauvola.cc b/scribo/src/binarization/sauvola.cc
index 3549585..d03622d 100644
--- a/scribo/src/binarization/sauvola.cc
+++ b/scribo/src/binarization/sauvola.cc
@@ -26,7 +26,7 @@
#include <mln/core/image/image2d.hh>
#include <mln/value/int_u8.hh>
-#include <mln/io/magick/load.hh>
+#include <mln/io/magick/all.hh>
#include <mln/io/pbm/save.hh>
#include <mln/data/transform.hh>
#include <mln/fun/v2v/rgb_to_luma.hh>
@@ -38,7 +38,7 @@
static const scribo::debug::arg_data arg_desc[] =
{
{ "input.*", "An image." },
- { "output.pbm", "A binary image." },
+ { "output.*", "A binary image." },
{0, 0}
};
@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
scribo::debug::logger().stop_local_time_logging("Binarized in");
- io::pbm::save(out, options.arg("output.pbm"));
+ io::magick::save(out, options.arg("output.*"));
trace::exiting("main");
}
diff --git a/scribo/src/binarization/sauvola_ms.cc
b/scribo/src/binarization/sauvola_ms.cc
index fc6a5a9..970e2aa 100644
--- a/scribo/src/binarization/sauvola_ms.cc
+++ b/scribo/src/binarization/sauvola_ms.cc
@@ -28,7 +28,7 @@
#include <mln/core/image/image2d.hh>
#include <mln/value/int_u8.hh>
-#include <mln/io/magick/load.hh>
+#include <mln/io/magick/all.hh>
#include <mln/io/pbm/save.hh>
#include <mln/data/transform.hh>
#include <mln/fun/v2v/rgb_to_luma.hh>
@@ -41,7 +41,7 @@
static const scribo::debug::arg_data arg_desc[] =
{
{ "input.*", "An image." },
- { "output.pbm", "A binary image." },
+ { "output.*", "A binary image." },
{0, 0}
};
@@ -147,5 +147,5 @@ int main(int argc, char *argv[])
scribo::debug::logger().stop_local_time_logging("Binarized in");
- io::pbm::save(output, options.arg("output.pbm"));
+ io::magick::save(output, options.arg("output.*"));
}
--
1.7.2.5