27 #ifndef MLN_MAKE_DETACHMENT_HH
28 # define MLN_MAKE_DETACHMENT_HH
34 # include <mln/core/image/complex_image.hh>
35 # include <mln/make/cell.hh>
68 template <
typename I,
typename N>
70 detachment(
const Image<I>& ima,
const mln_psite(I)& f,
71 const Neighborhood<N>& nbh);
74 # ifndef MLN_INCLUDE_ONLY
76 template <
typename I,
typename N>
79 detachment(
const Image<I>& ima_,
const mln_psite(I)& f,
80 const Neighborhood<N>& nbh_)
82 mlc_equal(mln_value(I),
bool)::check();
87 typedef p_set<mln_psite(I)> faces_t;
91 faces_t detach_f = f_hat;
93 mln_piter(faces_t) g(f_hat);
94 mln_niter(N) n(nbh, g);
97 if (ima(n) && !f_hat.has(n))
105 # endif // MLN_INCLUDE_ONLY
111 #endif // ! MLN_MAKE_DETACHMENT_HH