4465: Try to fix order problem between points and vectors.

* green/tests/accu/stat/histo3d_rgb/histo3d_rgb.cc (var_histo, mean_histo) : Comment p.to_vec code. --- trunk/milena/sandbox/ChangeLog | 7 +++++++ .../tests/accu/stat/histo3d_rgb/histo3d_rgb.cc | 2 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/trunk/milena/sandbox/ChangeLog b/trunk/milena/sandbox/ChangeLog index 8b4d62c..6572258 100644 --- a/trunk/milena/sandbox/ChangeLog +++ b/trunk/milena/sandbox/ChangeLog @@ -1,5 +1,12 @@ 2009-09-10 Yann Jacquelet <jacquelet@lrde.epita.fr> + Try to fix order problem between points and vectors. + + * green/tests/accu/stat/histo3d_rgb/histo3d_rgb.cc + (var_histo, mean_histo) : Comment p.to_vec code. + +2009-09-10 Yann Jacquelet <jacquelet@lrde.epita.fr> + Write down the basis of the quick tour summary documentation. * green/doc/quick_tour : New specific directory. diff --git a/trunk/milena/sandbox/green/tests/accu/stat/histo3d_rgb/histo3d_rgb.cc b/trunk/milena/sandbox/green/tests/accu/stat/histo3d_rgb/histo3d_rgb.cc index 37645ef..114a52d 100644 --- a/trunk/milena/sandbox/green/tests/accu/stat/histo3d_rgb/histo3d_rgb.cc +++ b/trunk/milena/sandbox/green/tests/accu/stat/histo3d_rgb/histo3d_rgb.cc @@ -215,6 +215,7 @@ mln::algebra::vec<3,float> mean_histo(const mln::image3d<unsigned>& img) */ count += img(p); sum += conv((vec3f)p) * img(p); + // sum += p.to_vec() * img(p); } result = sum / count; @@ -260,6 +261,7 @@ mln::algebra::mat<3,3,float> var_histo2(const mln::image3d<unsigned>& img) for_all(p) { + // point = p.to_vec() - mean; point = conv((vec3f)p) - mean; result += img(p) * (point * point.t()); } -- 1.5.6.5
participants (1)
-
Yann Jacquelet