26 #ifndef MLN_MORPHO_CLOSING_HEIGHT_HH
27 # define MLN_MORPHO_CLOSING_HEIGHT_HH
35 # include <mln/morpho/closing/leveling.hh>
36 # include <mln/morpho/attribute/height.hh>
49 template <
typename I,
typename N>
51 height(const Image<I>& input, const Neighborhood<N>& nbh,
55 # ifndef MLN_INCLUDE_ONLY
57 template <
typename I,
typename N>
60 height(const Image<I>& input, const Neighborhood<N>& nbh,
63 trace::entering(
"morpho::closing::height");
65 mln_precondition(exact(input).is_valid());
67 mln_concrete(I) output;
68 output = closing::leveling(input, nbh, attribute::height<I>(), lambda);
70 trace::exiting("morpho::closing::height");
74 # endif // ! MLN_INCLUDE_ONLY
83 #endif // ! MLN_MORPHO_CLOSING_HEIGHT_HH