* tests/core/image/imorph/interpolated-tr_image.cc: Here.
---
milena/ChangeLog | 6 ++++++
milena/tests/core/image/imorph/interpolated-tr_image.cc | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 41ccdce..28cbe0a 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,11 @@
2013-10-09 Roland Levillain <roland(a)lrde.epita.fr>
+ Milena: Add a ``one-liner'' test to interpolated-tr_image.
+
+ * tests/core/image/imorph/interpolated-tr_image.cc: Here.
+
+2013-10-09 Roland Levillain <roland(a)lrde.epita.fr>
+
Milena: Add helpers to instantiate mln::interpolated and mln::tr_image.
* mln/core/image/imorph/interpolated.hh (mln::interpolate)
diff --git a/milena/tests/core/image/imorph/interpolated-tr_image.cc
b/milena/tests/core/image/imorph/interpolated-tr_image.cc
index de85d58..e31d75c 100644
--- a/milena/tests/core/image/imorph/interpolated-tr_image.cc
+++ b/milena/tests/core/image/imorph/interpolated-tr_image.cc
@@ -78,4 +78,10 @@ int main()
R rotated(inter.domain(), inter, rotate);
PRINTLN(rotated);
}
+
+ // Equivalent ``one-liner''.
+ {
+ PRINTLN(apply_tr(interpolate<fun::x2v::bilinear>(safe(ima, 0.f).rw()),
+ fun::x2x::rotation<2, float>(math::pi / 4)));
+ }
}
--
1.7.10.4
Show replies by date