[gegl] tests: add a composition test for image-compare
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: add a composition test for image-compare
- Date: Thu, 24 Oct 2013 06:58:19 +0000 (UTC)
commit 24580c4f4395be162a5e19b51681dd90d8639b59
Author: Téo Mazars <teo mazars ensimag fr>
Date: Thu Oct 24 08:48:06 2013 +0200
tests: add a composition test for image-compare
even if image-compare tests itself, the critical part being in
simple/test-image-compare
tests/compositions/Makefile.am | 1 +
tests/compositions/image-compare.xml | 28 ++++++++++++++++++++++++
tests/compositions/reference/image-compare.png | Bin 0 -> 330566 bytes
3 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index f9e09e0..2fdddf7 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -25,6 +25,7 @@ TESTS = \
fattal02.xml \
gamma.xml \
hdr-color.xml \
+ image-compare.xml \
mantiuk06.xml \
pixelize.xml \
reflect.xml \
diff --git a/tests/compositions/image-compare.xml b/tests/compositions/image-compare.xml
new file mode 100644
index 0000000..c8e4d0b
--- /dev/null
+++ b/tests/compositions/image-compare.xml
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:image-compare'>
+ <node operation='gegl:load'>
+ <params>
+ <param name='path'>data/car-stack.png</param>
+ </params>
+ </node>
+ </node>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>0</param>
+ <param name='y'>0</param>
+ <param name='width'>512</param>
+ <param name='height'>384</param>
+ </params>
+ </node>
+ <node operation='gegl:gaussian-blur'>
+ <param name='std_dev_y'>4.0</param>
+ <param name='std_dev_x'>4.0</param>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name='path'>data/car-stack.png</param>
+ </params>
+ </node>
+</gegl>
+
diff --git a/tests/compositions/reference/image-compare.png b/tests/compositions/reference/image-compare.png
new file mode 100644
index 0000000..623c6db
Binary files /dev/null and b/tests/compositions/reference/image-compare.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]