
* mln/morpho/meyer_wst.hh (mln::morpho::meyer_wst): Work with the exact types of the arguments. --- milena/ChangeLog | 7 +++++++ milena/mln/morpho/meyer_wst.hh | 5 ++++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index e225c93..5b9944a 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,12 @@ 2008-09-17 Roland Levillain <roland@lrde.epita.fr> + Update morpho::meyer_wst. + + * mln/morpho/meyer_wst.hh (mln::morpho::meyer_wst): Work with the + exact types of the arguments. + +2008-09-17 Roland Levillain <roland@lrde.epita.fr> + Improve the handling of a possibly unused variable in line_gradient. * mln/morpho/line_gradient.hh (mln::morpho::line_gradient): Here. diff --git a/milena/mln/morpho/meyer_wst.hh b/milena/mln/morpho/meyer_wst.hh index c566a60..558c4d3 100644 --- a/milena/mln/morpho/meyer_wst.hh +++ b/milena/mln/morpho/meyer_wst.hh @@ -104,9 +104,12 @@ namespace mln template <typename L, typename I, typename N> mln_ch_value(I, L) - meyer_wst(const Image<I>& input, const Neighborhood<N>& nbh_, + meyer_wst(const Image<I>& input_, const Neighborhood<N>& nbh_, L& nbasins) { + I input = exact(input_); + N nbh = exact(nbh_); + /* FIXME: Ensure the input image has scalar values. */ const N& nbh = exact(nbh_); -- 1.6.0.1