milena r1447: New test for fllt debugging

URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-11-07 Guillaume Duhamel <guillaume.duhamel@lrde.epita.fr> New test for fllt debugging. * test_fllt13.cc: New test file from lena_tiles_3_9. --- test_fllt13.cc | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Index: trunk/milena/sandbox/garrigues/test_fllt13.cc =================================================================== --- trunk/milena/sandbox/garrigues/test_fllt13.cc (revision 0) +++ trunk/milena/sandbox/garrigues/test_fllt13.cc (revision 1447) @@ -0,0 +1,39 @@ +# include "fllt2.hh" +# include <mln/core/image2d.hh> +# include <mln/core/clone.hh> +# include <mln/value/int_u8.hh> +# include <mln/debug/println.hh> +# include <mln/convert/to_w_window.hh> +# include <mln/core/w_window2d_int.hh> +# include <mln/convert/to_image.hh> +# include <mln/level/fill.hh> +# include <mln/io/pgm/load.hh> +# include <mln/io/pgm/save.hh> +# include <mln/io/pbm/load.hh> +# include <sstream> + + +int main() +{ + + using namespace mln; + using typename value::int_u8; + +// int vs[3][6] = { {0, 0, 0, 1, 1, 1}, +// {0, 1, 0, 1, 0, 1}, +// {0, 0, 0, 1, 1, 1} }; + + + int vs[5][8] = { +{ 1, 1, 1, 1, 1, 1, 1, 4 }, +{ 1, 4, 1, 1, 1, 1, 4, 1 }, +{ 1, 2, 1, 1, 1, 4, 1, 1 }, +{ 1, 3, 1, 1, 4, 1, 1, 1 }, +{ 1, 1, 1, 4, 1, 1, 1, 1 } }; + + image2d<int> ima(make::image2d(vs)); + image2d<int_u8> out(ima.domain()); + + level::fill(out, ima); + fllt::fllt(ima); +}
participants (1)
-
Guillaume Duhamel