27 #ifndef SCRIBO_BINARIZATION_NIBLACK_THRESHOLD_HH
28 # define SCRIBO_BINARIZATION_NIBLACK_THRESHOLD_HH
39 # include <mln/core/concept/image.hh>
40 # include <scribo/binarization/internal/niblack_threshold_functor.hh>
41 # include <scribo/binarization/internal/local_threshold_core.hh>
63 template <
typename I,
typename J>
73 mln_ch_value(I,
value::int_u8)
82 mln_ch_value(I,
value::int_u8)
87 # ifndef MLN_INCLUDE_ONLY
94 mln_trace(
"scribo::binarization::niblack_threshold");
96 mln_precondition(mln_site_(I)::dim == 2);
97 mln_precondition(
exact(input).is_valid());
99 internal::niblack_threshold_functor<I> f(input, K);
100 internal::local_threshold_core(input, f, window_size);
106 template <
typename I>
112 SCRIBO_DEFAULT_NIBLACK_K);
116 template <
typename I>
125 # endif // ! MLN_INCLUDE_ONLY
132 #endif // ! SCRIBO_BINARIZATION_NIBLACK_THRESHOLD_HH