Commit 9630fe29 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

scribo/binarization/internal/sauvola_ms_functor.hh: Handle global variables correctly.

parent 3c0fa701
2013-03-07 Guillaume Lazzara <z@lrde.epita.fr>
* scribo/binarization/internal/sauvola_ms_functor.hh: Handle
global variables correctly.
2013-03-07 Guillaume Lazzara <z@lrde.epita.fr>
Remove scribo/sandbox.
......
......@@ -54,9 +54,9 @@ namespace scribo
namespace internal
{
double k2 = SCRIBO_DEFAULT_SAUVOLA_K;
double k3 = SCRIBO_DEFAULT_SAUVOLA_K;
double k4 = SCRIBO_DEFAULT_SAUVOLA_K;
extern double k2;
extern double k3;
extern double k4;
using namespace mln;
......@@ -104,6 +104,16 @@ namespace scribo
# ifndef MLN_INCLUDE_ONLY
# ifndef MLN_WO_GLOBAL_VARS
double k2 = SCRIBO_DEFAULT_SAUVOLA_K;
double k3 = SCRIBO_DEFAULT_SAUVOLA_K;
double k4 = SCRIBO_DEFAULT_SAUVOLA_K;
# endif // ! MLN_WO_GLOBAL_VARS
inline
unsigned my_find_root(image2d<unsigned>& parent, unsigned x)
{
......
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