27 #ifndef MLN_LABELING_BLOBS_HH
28 # define MLN_LABELING_BLOBS_HH
39 # include <mln/core/concept/image.hh>
40 # include <mln/core/concept/neighborhood.hh>
42 # include <mln/canvas/labeling/blobs.hh>
65 template <
typename I,
typename N,
typename L>
67 blobs(const Image<I>& input, const Neighborhood<N>& nbh,
71 # ifndef MLN_INCLUDE_ONLY
84 void new_label(
const mln_value(L)&) {}
86 void process_p(
const mln_site(L)&) {}
88 void process_n(
const mln_site(L)&) {}
99 template <
typename I,
typename N,
typename L>
105 trace::entering(
"labeling::blobs");
106 mlc_equal(mln_trait_image_kind(I),
107 mln::trait::image::kind::binary)::check();
108 const I& input = exact(input_);
109 const N& nbh = exact(nbh_);
110 mln_precondition(input.is_valid());
112 typedef mln_ch_value(I,L) out_t;
113 internal::dummy_functor<out_t> functor;
117 trace::exiting(
"labeling::blobs");
121 # endif // ! MLN_INCLUDE_ONLY
128 #endif // ! MLN_LABELING_BLOBS_HH