Commit 4258ef25 authored by Ugo Jardonnet's avatar Ugo Jardonnet
Browse files

Fix mln mean. mln_sum(T) MUST be divisible by unsigned.

	* mln/accu/mean.hh: Fix here.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3178 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent d6dd7b35
2009-01-21 Ugo Jardonnet <ugo.jardonnet@lrde.epita.fr>
Fix mln mean. mln_sum(T) MUST be divisible by unsigned.
* mln/accu/mean.hh: Fix here.
2009-01-21 Thierry Geraud <thierry.geraud@lrde.epita.fr>
 
Add activity to morphology algebraic canvas.
......@@ -150,7 +150,7 @@ namespace mln
M
mean<T,S,M>::to_result() const
{
S n = static_cast<S>(count_.to_result());
unsigned n = count_.to_result();
return static_cast<M>(sum_.to_result() / n);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment