26 #ifndef MLN_MORPHO_CLOSING_AREA_ON_VERTICES_HH
27 # define MLN_MORPHO_CLOSING_AREA_ON_VERTICES_HH
34 # include <mln/core/image/edge_image.hh>
35 # include <mln/morpho/closing/algebraic.hh>
36 # include <mln/morpho/attribute/count_adjacent_vertices.hh>
57 template <
typename P,
typename V,
typename G,
typename N>
59 area_on_vertices(
const edge_image<P,V,G>& input,
60 const Neighborhood<N>& nbh,
64 # ifndef MLN_INCLUDE_ONLY
66 template <
typename P,
typename V,
typename G,
typename N>
69 area_on_vertices(
const edge_image<P,V,G>& input,
70 const Neighborhood<N>& nbh,
73 trace::entering(
"morpho::closing::area_on_vertices");
74 mln_precondition(exact(input).is_valid());
76 typedef attribute::count_adjacent_vertices< edge_image<P,V,G> > attribute_t;
79 output = closing::algebraic(input, nbh, attribute_t(), lambda);
81 trace::exiting(
"morpho::closing::area_on_vertices");
85 # endif // ! MLN_INCLUDE_ONLY
94 #endif // ! MLN_MORPHO_CLOSING_AREA_ON_VERTICES_HH