
* mln/accu/compute.hh (accu::compute(const Meta_Accumulator<A>, const Image<I>&)): Here. --- milena/ChangeLog | 7 +++++++ milena/mln/accu/compute.hh | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 74bb42d..7083db0 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,3 +1,10 @@ +2010-04-13 Roland Levillain <roland@lrde.epita.fr> + + Fix accu::compute(const Meta_Accumulator<A>, const Image<I>&). + + * mln/accu/compute.hh + (accu::compute(const Meta_Accumulator<A>, const Image<I>&)): Here. + 2010-04-09 Roland Levillain <roland@lrde.epita.fr> Fix test core/other/box_runend_piter. diff --git a/milena/mln/accu/compute.hh b/milena/mln/accu/compute.hh index aeb86e2..9c0e6b1 100644 --- a/milena/mln/accu/compute.hh +++ b/milena/mln/accu/compute.hh @@ -147,11 +147,9 @@ namespace mln mln_precondition(exact(input).is_valid()); - //FIXME: why adding util::pix here? typedef mln_accu_with(A, util::pix<I>) A_; - util::pix<I>* pix_; // So we can pass a pixel below (pixel has - // no ctor without arg). - A_ a_ = accu::unmeta(exact(a), *pix_); + util::pix<I> pix_(exact(input), mln_psite(I)()); + A_ a_ = accu::unmeta(exact(a), pix_); mln_result(A_) output = internal::compute_dispatch(a_, input); -- 1.5.6.5