olena-2.0-428-g2fe026c scribo/binarization/sauvola_ms.hh: Add overloads.

--- scribo/ChangeLog | 4 ++++ scribo/scribo/binarization/sauvola_ms.hh | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/scribo/ChangeLog b/scribo/ChangeLog index 9e05883..f73238c 100644 --- a/scribo/ChangeLog +++ b/scribo/ChangeLog @@ -1,5 +1,9 @@ 2013-03-25 Guillaume Lazzara <z@lrde.epita.fr> + * scribo/binarization/sauvola_ms.hh: Add overloads. + +2013-03-25 Guillaume Lazzara <z@lrde.epita.fr> + * scribo/core/document.hh: Add more assertions. 2013-03-22 Guillaume Lazzara <z@lrde.epita.fr> diff --git a/scribo/scribo/binarization/sauvola_ms.hh b/scribo/scribo/binarization/sauvola_ms.hh index 979a4e9..6a9751c 100644 --- a/scribo/scribo/binarization/sauvola_ms.hh +++ b/scribo/scribo/binarization/sauvola_ms.hh @@ -141,6 +141,17 @@ namespace scribo sauvola_ms(const Image<I>& input_1, unsigned w_1, unsigned s); /// \overload + /// The integral image is not returned. + /// K is set to 0.34. + /// s is set to 3. + /// + /// \ingroup grpalgobinsauvola + // + template <typename I> + mln_ch_value(I,bool) + sauvola_ms(const Image<I>& input_1, unsigned w_1); + + /// \overload /// Allow to specify a different k parameter for each scale. // template <typename I> @@ -1064,6 +1075,14 @@ namespace scribo template <typename I> mln_ch_value(I,bool) + sauvola_ms(const Image<I>& input_1, unsigned w_1) + { + return sauvola_ms(input_1, w_1, 3); + } + + + template <typename I> + mln_ch_value(I,bool) sauvola_ms(const Image<I>& input_1, unsigned w_1, unsigned s, double k2, double k3, double k4) { -- 1.7.2.5
participants (1)
-
Guillaume Lazzara