
* mln/morpho/elementary/gradient.hh: Ambiguity with images both fastest and logic. --- milena/ChangeLog | 7 +++++++ milena/mln/morpho/elementary/gradient.hh | 11 +++++++++++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 556e3ec..fabb854 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,12 @@ 2009-02-23 Guillaume Lazzara <z@lrde.epita.fr> + Fix ambiguity in morpho::elementary::gradient dispatch. + + * mln/morpho/elementary/gradient.hh: Ambiguity with images both + fastest and logic. + +2009-02-23 Guillaume Lazzara <z@lrde.epita.fr> + Add new routines to make a 3D image from a list of files. * mln/io/pbm/load.hh, diff --git a/milena/mln/morpho/elementary/gradient.hh b/milena/mln/morpho/elementary/gradient.hh index 9973afb..dec2558 100644 --- a/milena/mln/morpho/elementary/gradient.hh +++ b/milena/mln/morpho/elementary/gradient.hh @@ -214,6 +214,17 @@ namespace mln return impl::gradient_on_set(input, nbh); } + // May be redundant with the previous version but fixes an ambiguity + // with image*d<bool> which is fasted AND logic. + template <typename I, typename N> + mln_concrete(I) + gradient_dispatch(trait::image::kind::logic, + trait::image::speed::fastest, + const Image<I>& input, const Neighborhood<N>& nbh) + { + return impl::gradient_on_set(input, nbh); + } + template <typename I, typename N> mln_concrete(I) gradient_dispatch(const Image<I>& input, const Neighborhood<N>& nbh) -- 1.5.6.5