last-svn-commit-958-ga93cf00 mln/debug/println_with_border.spe.hh: Improve output for 3D images.

--- milena/ChangeLog | 5 +++++ milena/mln/debug/println_with_border.spe.hh | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 0814f80..537e8ed 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,10 @@ 2011-09-02 Guillaume Lazzara <z@lrde.epita.fr> + * mln/debug/println_with_border.spe.hh: Improve output for 3D + images. + +2011-09-02 Guillaume Lazzara <z@lrde.epita.fr> + Add vbbox() method. * mln/core/image/image1d.hh, diff --git a/milena/mln/debug/println_with_border.spe.hh b/milena/mln/debug/println_with_border.spe.hh index ce882bf..f59f45b 100644 --- a/milena/mln/debug/println_with_border.spe.hh +++ b/milena/mln/debug/println_with_border.spe.hh @@ -1,4 +1,5 @@ -// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE) +// Copyright (C) 2007, 2008, 2009, 2011 EPITA Research and Development +// Laboratory (LRDE) // // This file is part of Olena. // @@ -92,8 +93,11 @@ namespace mln { for (unsigned j = 0; j < real_len_r; ++j) { + for (unsigned l = 0; l < real_len_r - j; ++l) + std::cout << ' '; + for (unsigned i = 0; i < real_len_c; ++i) - std::cout << format(input.point_at_index(k * (real_len_r * real_len_c) + j * real_len_c + i)) + std::cout << format(input.buffer()[k * (real_len_r * real_len_c) + j * real_len_c + i]) << ' '; std::cout << std::endl; } -- 1.7.2.5
participants (1)
-
Guillaume Lazzara