URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2007-11-07 Guillaume Duhamel <guillaume.duhamel(a)lrde.epita.fr>
Add new test for fllt debug.
* test_fllt15.cc: New test form lena_7_5.
---
test_fllt15.cc | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Index: trunk/milena/sandbox/garrigues/test_fllt15.cc
===================================================================
--- trunk/milena/sandbox/garrigues/test_fllt15.cc (revision 0)
+++ trunk/milena/sandbox/garrigues/test_fllt15.cc (revision 1452)
@@ -0,0 +1,43 @@
+# 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[6][7] = {
+
+{ 3, 3, 4, 4, 4, 3, 3 },
+{ 2, 1, 1, 1, 1, 1, 3 },
+{ 1, 3, 4, 4, 4, 1, 1 },
+{ 1, 1, 4, 3, 4, 1, 1 },
+{ 1, 1, 4, 5, 3, 1, 1 },
+{ 1, 1, 1, 1, 1, 1, 1 }
+
+};
+
+ image2d<int> ima(make::image2d(vs));
+ image2d<int_u8> out(ima.domain());
+
+ level::fill(out, ima);
+ fllt::fllt(ima);
+}