---
.../sandbox/z/sauvola_ms_rv/skewness/skewness2.cc | 2 ++
scribo/scribo/binarization/sauvola_threshold.hh | 6 +++++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/scribo/sandbox/z/sauvola_ms_rv/skewness/skewness2.cc
b/scribo/sandbox/z/sauvola_ms_rv/skewness/skewness2.cc
index 9b77a99..331575f 100644
--- a/scribo/sandbox/z/sauvola_ms_rv/skewness/skewness2.cc
+++ b/scribo/sandbox/z/sauvola_ms_rv/skewness/skewness2.cc
@@ -32,6 +32,7 @@
#include "integral_browsing_rv.hh"
mln::image2d<bool> skewness_pbm;
+mln::image2d<double> skewness_d;
std::string prefix;
@@ -197,6 +198,7 @@ int main(int argc, char *argv[])
scribo::canvas::integral_browsing_rv(integral_sum_sum_2_sum_3, skewness_win_size,
skewness_win_size, f);
skewness_pbm = f.skewness_;
+ skewness_d = f.skewness_d_;
t.stop();
std::cout << "invert on skewness - " << t << std::endl;
diff --git a/scribo/scribo/binarization/sauvola_threshold.hh
b/scribo/scribo/binarization/sauvola_threshold.hh
index df46e95..7950c13 100644
--- a/scribo/scribo/binarization/sauvola_threshold.hh
+++ b/scribo/scribo/binarization/sauvola_threshold.hh
@@ -44,7 +44,7 @@
# include <scribo/binarization/internal/compute_local_threshold.hh>
# include <scribo/binarization/internal/sauvola_formula.hh>
-
+extern std::string prefix;
namespace scribo
{
@@ -130,6 +130,7 @@ namespace scribo
# ifdef SCRIBO_LOCAL_THRESHOLD_DEBUG
initialize(internal::debug_mean, input);
initialize(internal::debug_stddev, input);
+
initialize(internal::debug_threshold, input);
initialize(internal::debug_alpham, input);
initialize(internal::debug_alphacond, input);
@@ -262,6 +263,9 @@ namespace scribo
simple = init_integral_image(input, scribo::internal::identity_),
squared = init_integral_image(input, scribo::internal::square_);
+ io::dump::save(simple, prefix + "simple.dump");
+ io::dump::save(squared, prefix + "squared.dump");
+
return sauvola_threshold(input, window_size,
K, simple, squared);
}
--
1.7.2.5