29 #include <mln/morpho/closing/area.hh>
30 #include <mln/morpho/watershed/flooding.hh>
32 template <
typename I,
typename N,
typename L>
34 chain(const mln::Image<I>& ima, const mln::Neighborhood<N>& nbh,
35 unsigned lambda, L& nbasins)
37 mln_concrete(I) c = mln::morpho::closing::area(ima, nbh, lambda);
38 mln_ch_value(I, L) s = mln::morpho::watershed::flooding(c, nbh, nbasins);