--- scribo/ChangeLog | 4 ++++ scribo/scribo/binarization/sauvola_ms.hh | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog index 63ec1b9..615a624 100644 --- a/scribo/ChangeLog +++ b/scribo/ChangeLog @@ -1,5 +1,9 @@ 2012-09-10 Guillaume Lazzara z@lrde.epita.fr
+ * scribo/binarization/sauvola_ms.hh: Add comments. + +2012-09-10 Guillaume Lazzara z@lrde.epita.fr + Use io::magick for sauvola binaries output.
* src/binarization/sauvola.cc, diff --git a/scribo/scribo/binarization/sauvola_ms.hh b/scribo/scribo/binarization/sauvola_ms.hh index 274492d..0bc595e 100644 --- a/scribo/scribo/binarization/sauvola_ms.hh +++ b/scribo/scribo/binarization/sauvola_ms.hh @@ -807,6 +807,10 @@ namespace scribo unsigned q = 2;
+ /*========================== + == Step 1 - Subsampling == + ========================*/ + mln::util::array<I> t_ima;
// Make sure t_ima indexes start from 2. @@ -901,6 +905,9 @@ namespace scribo integral_sum_sum_2.border()); # endif // ! SCRIBO_LOCAL_THRESHOLD_DEBUG
+ /*============================================= + == Step 2 - Object selection at each scale == + ===========================================*/
// Highest scale -> no maximum component size. { @@ -954,6 +961,10 @@ namespace scribo mln::debug::filename(internal::scale_image_output)); # endif // ! SCRIBO_LOCAL_THRESHOLD_DEBUG
+ /*============================== + == Step 3 - Results Merging == + ============================*/ + // Propagate scale values. e_2 = transform::influence_zone_geodesic(e_2, c8());
@@ -984,6 +995,10 @@ namespace scribo mln::debug::filename(internal::scale_proba_output)); # endif // ! SCRIBO_LOCAL_THRESHOLD_DEBUG
+ /*================================= + == Step 4 - Final Binarization == + ===============================*/ + // Binarize image2d<bool> output = internal::multi_scale_binarization(input_1, e_2, t_ima, s);