27 #ifndef MLN_MORPHO_OPENING_AREA_HH
28 # define MLN_MORPHO_OPENING_AREA_HH
34 # include <mln/morpho/opening/algebraic.hh>
35 # include <mln/morpho/attribute/card.hh>
51 template <
typename I,
typename N>
53 area(const Image<I>& input, const Neighborhood<N>& nbh,
57 # ifndef MLN_INCLUDE_ONLY
59 template <
typename I,
typename N>
62 area(const Image<I>& input, const Neighborhood<N>& nbh,
65 mln_trace(
"morpho::opening::area");
67 mln_precondition(
exact(input).is_valid());
69 mln_concrete(I) output;
70 output = opening::
algebraic(input, nbh, attribute::card<I>(), lambda);
75 # endif // ! MLN_INCLUDE_ONLY
84 #endif // ! MLN_MORPHO_OPENING_AREA_HH