26 #ifndef SCRIBO_BINARIZATION_GLOBAL_THRESHOLD_HH
27 # define SCRIBO_BINARIZATION_GLOBAL_THRESHOLD_HH
29 # include <mln/core/concept/image.hh>
30 # include <mln/value/concept/vectorial.hh>
31 # include <mln/fun/v2b/threshold_le.hh>
32 # include <mln/data/transform.hh>
65 global_threshold(const
Image<I>& input, const mln_value(I)&
threshold);
68 # ifndef MLN_INCLUDE_ONLY
73 global_threshold(const
Image<I>& input, const mln_value(I)& threshold)
75 mln_trace(
"scribo::binarization::global_threshold");
77 mln_precondition(
exact(input).is_valid());
78 mlc_is_not_a(mln_value(I), value::Vectorial)::check();
87 # endif // ! MLN_INCLUDE_ONLY
94 #endif // ! SCRIBO_BINARIZATION_GLOBAL_THRESHOLD_HH