27 #ifndef MLN_BINARIZATION_THRESHOLD_HH
28 # define MLN_BINARIZATION_THRESHOLD_HH
34 # include <mln/binarization/binarization.hh>
35 # include <mln/fun/v2b/threshold_ge.hh>
61 # ifndef MLN_INCLUDE_ONLY
66 threshold(const Image<I>& input, const mln_value(I) threshold_value)
68 mln_trace(
"binarization::threshold");
70 mln_precondition(
exact(input).is_valid());
71 mlc_is(mln_trait_value_nature(mln_value(I)),
72 trait::value::nature::scalar)::check();
74 mln_ch_value(I,
bool) output(
exact(input).domain());
77 fun::v2b::threshold_ge< mln_value(I) > f(threshold_value);
84 # endif // ! MLN_INCLUDE_ONLY
91 #endif // ! MLN_BINARIZATION_THRESHOLD_HH