26 #ifndef SCRIBO_BINARIZATION_SINGH_HH
27 # define SCRIBO_BINARIZATION_SINGH_HH
33 # include <mln/core/concept/image.hh>
34 # include <scribo/binarization/internal/singh_functor.hh>
35 # include <scribo/binarization/internal/local_threshold_core.hh>
57 singh(const
Image<I>& input,
unsigned window_size,
double K);
73 singh(const
Image<I>& input,
unsigned window_size);
84 # ifndef MLN_INCLUDE_ONLY
90 singh(const
Image<I>& input,
unsigned window_size,
double K)
92 mln_trace(
"scribo::binarization::singh");
94 mln_precondition(
exact(input).is_valid());
96 internal::singh_functor<I> f(input, K);
97 internal::local_threshold_core(input, f, window_size);
103 template <
typename I>
105 singh(const
Image<I>& input,
unsigned window_size)
107 return singh(input, window_size, SCRIBO_DEFAULT_SINGH_K);
111 template <
typename I>
115 return singh(input, 11);
119 # endif // ! MLN_INCLUDE_ONLY
127 #endif // ! SCRIBO_BINARIZATION_SINGH_HH