26 #ifndef MLN_DEBUG_HISTO_HH
27 # define MLN_DEBUG_HISTO_HH
39 # include <mln/histo/array.hh>
40 # include <mln/core/image/image2d.hh>
41 # include <mln/draw/line.hh>
57 # ifndef MLN_INCLUDE_ONLY
63 std::ofstream file(filename.c_str());
66 std::cerr <<
"error: cannot open file '" << filename <<
"'!";
69 mln_viter(value::set<T>) v(h.vset());
71 file << v << ' ' << h(v) << std::endl;
75 # endif // ! MLN_INCLUDE_ONLY
82 #endif // ! MLN_DEBUG_HISTO_HH