26 #ifndef MLN_MORPHO_TREE_MAX_HH
27 # define MLN_MORPHO_TREE_MAX_HH
33 # include <mln/morpho/tree/compute_parent.hh>
34 # include <mln/data/sort_psites.hh>
50 template <
typename I,
typename N>
51 mln_ch_value(I, mln_psite(I))
52 max(const Image<I>& f, const Neighborhood<N>& nbh);
56 # ifndef MLN_INCLUDE_ONLY
59 template <
typename I,
typename N>
61 mln_ch_value(I, mln_psite(I))
62 max(const Image<I>& f_, const Neighborhood<N>& nbh_)
64 mln_trace(
"morpho::tree::max");
66 const I& f =
exact(f_);
67 const N& nbh =
exact(nbh_);
69 mln_precondition(f.is_valid());
70 mln_precondition(nbh.is_valid());
79 # endif // ! MLN_INCLUDE_ONLY
88 #endif // ! MLN_MORPHO_TREE_MAX_HH