https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Update test on extension fill.
* milena/tests/extension/fill.cc (println_with_border): Remove.
Use 'extended' instead.
* milena/mln/core/image/extended.hh: Fix missing arg name.
mln/core/image/extended.hh | 2 +-
tests/extension/fill.cc | 17 ++++++++++++-----
2 files changed, 13 insertions(+), 6 deletions(-)
Index: milena/tests/extension/fill.cc
--- milena/tests/extension/fill.cc (revision 2344)
+++ milena/tests/extension/fill.cc (working copy)
@@ -31,9 +31,12 @@
*/
#include <mln/core/image/image2d.hh>
+#include <mln/core/image/extended.hh>
#include <mln/extension/fill.hh>
-#include <mln/value/int_u8.hh>
-#include <mln/debug/println_with_border.hh>
+
+#include <mln/level/fill.hh>
+#include <mln/debug/println.hh>
+
int main()
{
@@ -41,8 +44,12 @@
const unsigned border = 2;
- image2d<value::int_u8> ima(3, 3, border);
- extension::fill(ima, 42);
+ image2d<unsigned> ima(3, 3, border);
+
+ level::fill(ima, 0);
+ extension::fill(ima, 9);
- debug::println_with_border(ima);
+ box2d b = ima.bbox();
+ b.enlarge(border);
+ debug::println(extended_to(ima, b));
}
Index: milena/mln/core/image/extended.hh
--- milena/mln/core/image/extended.hh (revision 2344)
+++ milena/mln/core/image/extended.hh (working copy)
@@ -104,7 +104,7 @@
extended();
/// Constructor.
- extended(I& ima, const box<mln_site(I)>& );
+ extended(I& ima, const box<mln_site(I)>& b);
/// Initialization.
void init_(I& ima, const box<mln_site(I)>& b);