
URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox ChangeLog: 2009-06-19 Etienne FOLIO <folio@lrde.epita.fr> Stretch result of classification. * folio/tools/histo/classify_with_histo.cc: Stretch result in the output image. --- classify_with_histo.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: trunk/milena/sandbox/folio/tools/histo/classify_with_histo.cc =================================================================== --- trunk/milena/sandbox/folio/tools/histo/classify_with_histo.cc (revision 4175) +++ trunk/milena/sandbox/folio/tools/histo/classify_with_histo.cc (revision 4176) @@ -26,6 +26,7 @@ #include <mln/arith/revert.hh> #include <mln/core/alias/neighb3d.hh> +#include <mln/data/stretch.hh> #include <mln/io/pgm/save.hh> #include <mln/io/ppm/load.hh> #include <mln/morpho/closing/volume.hh> @@ -105,5 +106,5 @@ // save output image std::cout << " => saving " << argv[3] << "..." << std::endl; - io::pgm::save(out, argv[3]); + io::pgm::save(data::stretch(int_u8(), out), argv[3]); }