27 #ifndef MLN_MAKE_ATTACHMENT_HH
28 # define MLN_MAKE_ATTACHMENT_HH
34 # include <mln/core/image/complex_image.hh>
35 # include <mln/make/cell.hh>
61 template <
typename I,
typename N>
63 attachment(
const Image<I>& ima,
const mln_psite(I)& f,
64 const Neighborhood<N>& nbh);
67 # ifndef MLN_INCLUDE_ONLY
69 template <
typename I,
typename N>
72 attachment(
const Image<I>& ima_,
const mln_psite(I)& f,
73 const Neighborhood<N>& nbh_)
75 mlc_equal(mln_value(I),
bool)::check();
80 typedef p_set<mln_psite(I)> faces_t;
85 mln_piter(faces_t) g(f_hat);
86 mln_niter(N) n(nbh, g);
89 if (ima(n) && !f_hat.has(n))
97 # endif // MLN_INCLUDE_ONLY
103 #endif // ! MLN_MAKE_ATTACHMENT_HH