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>
52 template <
typename I,
typename N>
54 height(const Image<I>& input, const Neighborhood<N>& nbh,
58 # ifndef MLN_INCLUDE_ONLY
60 template <
typename I,
typename N>
63 height(const Image<I>& input, const Neighborhood<N>& nbh,
66 mln_trace(
"morpho::closing::height");
68 mln_precondition(
exact(input).is_valid());
70 mln_concrete(I) output;
71 output = closing::
leveling(input, nbh, attribute::
height<I>(), lambda);
76 # endif // ! MLN_INCLUDE_ONLY
85 #endif // ! MLN_MORPHO_CLOSING_HEIGHT_HH