Commit f7985a1b authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

scribo/binarization/sauvola_ms.hh: Add comments.

parent ea5d1667
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.
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment