[gegl] tests: add a test case for alien-map



commit 6770ca5752c4c0e8ada43de869ba79f899146992
Author: Téo Mazars <teo mazars ensimag fr>
Date:   Thu Oct 24 16:22:17 2013 +0200

    tests: add a test case for alien-map

 tests/compositions/Makefile.am             |    1 +
 tests/compositions/alien-map.xml           |   22 ++++++++++++++++++++++
 tests/compositions/reference/alien-map.png |  Bin 0 -> 1233115 bytes
 3 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 50ffa88..7f94d91 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -16,6 +16,7 @@ EXTRA_DIST=$(wildcard $(srcdir)/*.xml) $(wildcard $(srcdir)/reference/*) run-com
 # EXTRA_DISTS
 TESTS = \
   affine-with-negative.xml        \
+  alien-map.xml                   \
   checkerboard.xml                \
   clones.xml                      \
   colors.xml                      \
diff --git a/tests/compositions/alien-map.xml b/tests/compositions/alien-map.xml
new file mode 100644
index 0000000..0763679
--- /dev/null
+++ b/tests/compositions/alien-map.xml
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+  <node operation='gegl:alien-map'>
+    <params>
+      <param name='color_model'>RGB</param>
+      <param name='cpn_1_frequency'>2.0</param>
+      <param name='cpn_2_frequency'>2.0</param>
+      <param name='cpn_3_frequency'>2.0</param>
+      <param name='cpn_1_phaseshift'>1.0</param>
+      <param name='cpn_2_phaseshift'>1.0</param>
+      <param name='cpn_3_phaseshift'>1.0</param>
+      <param name='cpn_1_keep'>false</param>
+      <param name='cpn_2_keep'>false</param>
+      <param name='cpn_3_keep'>false</param>
+    </params>
+  </node>
+  <node operation='gegl:load'>
+    <params>
+      <param name='path'>data/car-stack.png</param>
+    </params>
+  </node>
+</gegl>
diff --git a/tests/compositions/reference/alien-map.png b/tests/compositions/reference/alien-map.png
new file mode 100644
index 0000000..bb97994
Binary files /dev/null and b/tests/compositions/reference/alien-map.png differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]