26 #ifndef MLN_LABELING_FOREGROUND_HH
27 # define MLN_LABELING_FOREGROUND_HH
34 # include <mln/labeling/value.hh>
58 template <
typename I,
typename N,
typename L>
60 foreground(const Image<I>& input, const Neighborhood<N>& nbh,
64 # ifndef MLN_INCLUDE_ONLY
66 template <
typename I,
typename N,
typename L>
72 trace::entering(
"labeling::foreground");
74 mlc_equal(mln_trait_image_kind(I),
75 mln::trait::image::kind::binary)::check();
76 mln_precondition(exact(input).is_valid());
77 mln_precondition(exact(nbh).is_valid());
81 trace::exiting(
"labeling::foreground");
85 # endif // ! MLN_INCLUDE_ONLY
92 #endif // ! MLN_LABELING_FOREGROUND_HH