27 #ifndef MLN_LABELING_BACKGROUND_HH
28 # define MLN_LABELING_BACKGROUND_HH
35 # include <mln/labeling/value.hh>
60 template <
typename I,
typename N,
typename L>
62 background(const Image<I>& input, const Neighborhood<N>& nbh,
66 # ifndef MLN_INCLUDE_ONLY
68 template <
typename I,
typename N,
typename L>
71 background(const Image<I>& input, const Neighborhood<N>& nbh,
74 mln_trace(
"labeling::background");
76 mlc_equal(mln_trait_image_kind(I),
77 mln::trait::image::kind::binary)::check();
78 mln_precondition(
exact(input).is_valid());
79 mln_precondition(
exact(nbh).is_valid());
81 mln_ch_value(I, L) output =
labeling::
value(input, false, nbh, nlabels);
86 # endif // ! MLN_INCLUDE_ONLY
93 #endif // ! MLN_LABELING_BACKGROUND_HH