* mln/debug/histo.hh: add missing includes and a wrong precondition.
---
milena/ChangeLog | 6 ++++++
milena/mln/debug/histo.hh | 15 +++++++++------
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 011ba13..36b3251 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-11 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ Fix debug::histo.
+
+ * mln/debug/histo.hh: add missing includes and a wrong precondition.
+
2009-02-10 Roland Levillain <roland(a)lrde.epita.fr>
s/alignement/alignment/g.
diff --git a/milena/mln/debug/histo.hh b/milena/mln/debug/histo.hh
index 1b0bbeb..e16d0b7 100644
--- a/milena/mln/debug/histo.hh
+++ b/milena/mln/debug/histo.hh
@@ -33,7 +33,11 @@
///
/// save a histogram to a plot data file.
+# include <iostream>
+# include <fstream>
# include <vector>
+# include <string>
+# include <mln/histo/array.hh>
# include <mln/core/image/image2d.hh>
# include <mln/draw/line.hh>
@@ -45,22 +49,21 @@ namespace mln
void
- histo_plot(const histo::array<unsigned>& h, const std::string&
filename);
+ histo(const histo::array<unsigned>& h, const std::string& filename);
void
- histo_plot(const std::vector<unsigned>& h, const std::string&
filename);
+ histo(const std::vector<unsigned>& h, const std::string& filename);
# ifndef MLN_INCLUDE_ONLY
void
- histo_plot(const histo::array<unsigned>& h, const std::string&
filename)
+ histo(const histo::array<unsigned>& h, const std::string& filename)
{
- mln_precondition(h.is_valid());
- histo_plot(h.vect(), filename);
+ histo(h.vect(), filename);
}
void
- histo_plot(const std::vector<unsigned>& h, const std::string&
filename)
+ histo(const std::vector<unsigned>& h, const std::string& filename)
{
std::ofstream file(filename.c_str());
if (! file)
--
1.5.6.5
Show replies by date