26 #ifndef MLN_LABELING_BACKGROUND_HH
27 # define MLN_LABELING_BACKGROUND_HH
34 # include <mln/labeling/value.hh>
58 template <
typename I,
typename N,
typename L>
60 background(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::background");
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());
79 mln_ch_value(I, L) output =
labeling::value(input,
false, nbh, nlabels);
81 trace::exiting(
"labeling::background");
85 # endif // ! MLN_INCLUDE_ONLY
92 #endif // ! MLN_LABELING_BACKGROUND_HH