27 #ifndef SCRIBO_BINARIZATION_NIBLACK_FAST_HH
28 # define SCRIBO_BINARIZATION_NIBLACK_FAST_HH
34 # include <mln/core/concept/image.hh>
35 # include <scribo/binarization/internal/niblack_functor_fast.hh>
36 # include <scribo/binarization/internal/local_threshold_core.hh>
89 # ifndef MLN_INCLUDE_ONLY
97 mln_trace(
"scribo::binarization::niblack_fast");
99 mln_precondition(
exact(input).is_valid());
101 internal::niblack_functor_fast<I> f(input, K);
102 internal::local_threshold_core(input, f, window_size);
108 template <
typename I>
112 return niblack_fast(input, window_size, SCRIBO_DEFAULT_NIBLACK_K);
116 template <
typename I>
123 # endif // ! MLN_INCLUDE_ONLY
131 #endif // ! SCRIBO_BINARIZATION_NIBLACK_FAST_HH