2308: Fix handling of arguments in mln::morpho::meyer_wst.

* mln/morpho/meyer_wst.hh (mln::morpho::meyer_wst): Fix duplicate conversion of argument `nbh_' to its exact type. --- milena/ChangeLog | 7 +++++++ milena/mln/morpho/meyer_wst.hh | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 16c2b93..90d6159 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,12 @@ 2008-09-17 Roland Levillain <roland@lrde.epita.fr> + Fix handling of arguments in mln::morpho::meyer_wst. + + * mln/morpho/meyer_wst.hh (mln::morpho::meyer_wst): Fix duplicate + conversion of argument `nbh_' to its exact type. + +2008-09-17 Roland Levillain <roland@lrde.epita.fr> + Update tools/area_flooding. * tools/area_flooding.cc (main): s/p.to_psite()/p.unproxy_()/. diff --git a/milena/mln/morpho/meyer_wst.hh b/milena/mln/morpho/meyer_wst.hh index 558c4d3..22021eb 100644 --- a/milena/mln/morpho/meyer_wst.hh +++ b/milena/mln/morpho/meyer_wst.hh @@ -107,11 +107,10 @@ namespace mln 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_); + + const I input = exact(input_); + const N nbh = exact(nbh_); typedef L marker; const marker unmarked = literal::zero; -- 1.6.0.1

Roland Levillain <roland@lrde.epita.fr> writes:
* mln/morpho/meyer_wst.hh (mln::morpho::meyer_wst): Fix duplicate conversion of argument `nbh_' to its exact type.
--- milena/ChangeLog | 7 +++++++ milena/mln/morpho/meyer_wst.hh | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-)
Sorry for that one, I didn't checked the merge on morpho::meyer_wst before git-lrde-dcommitting.
participants (1)
-
Roland Levillain