[gegl] Add tests and reference images for resamplers
- From: Øyvind Kolås <ok src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl] Add tests and reference images for resamplers
- Date: Sun, 7 Feb 2010 16:04:47 +0000 (UTC)
commit 9a7190feb20b75cb5503b235bd3066ee533441cf
Author: �yvind Kolås <pippin gimp org>
Date: Sun Feb 7 15:26:08 2010 +0000
Add tests and reference images for resamplers
These images are generated from the latest available implementation of
the samplers, the result differs from the reference images originally
provided with that code, but provides consistent results on systems
where it has been checked.
tests/compositions/downsharptest.xml | 35 +++++++++++++++++++++++
tests/compositions/downsizetest.xml | 35 +++++++++++++++++++++++
tests/compositions/downsmoothtest.xml | 35 +++++++++++++++++++++++
tests/compositions/reference/downsharptest.png | Bin 0 -> 27749 bytes
tests/compositions/reference/downsizetest.png | Bin 0 -> 27653 bytes
tests/compositions/reference/downsmoothtest.png | Bin 0 -> 27307 bytes
tests/compositions/reference/upsharptest.png | Bin 0 -> 27725 bytes
tests/compositions/reference/upsizetest.png | Bin 0 -> 27776 bytes
tests/compositions/reference/upsmoothtest.png | Bin 0 -> 27786 bytes
tests/compositions/upsharptest.xml | 35 +++++++++++++++++++++++
tests/compositions/upsizetest.xml | 35 +++++++++++++++++++++++
tests/compositions/upsmoothtest.xml | 35 +++++++++++++++++++++++
12 files changed, 210 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/downsharptest.xml b/tests/compositions/downsharptest.xml
new file mode 100644
index 0000000..a20c95d
--- /dev/null
+++ b/tests/compositions/downsharptest.xml
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>35.000000</param>
+ <param name='y'>10.000000</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:scale'>
+ <params>
+ <param name='origin-x'>0.000000</param>
+ <param name='origin-y'>0.000000</param>
+ <param name='filter'>downsharp</param>
+ <param name='hard-edges'>false</param>
+ <param name='lanczos-width'>3</param>
+ <param name='x'>0.236328125</param>
+ <param name='y'>0.231770833</param>
+ </params>
+ </node>
+ <node operation='gegl:rotate'>
+ <params>
+ <param name='degrees'>7.000000</param>
+ <param name='filter'>downsharp</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name="path">data/car-stack.png</param>
+ </params>
+ </node>
+ </node>
+</gegl>
diff --git a/tests/compositions/downsizetest.xml b/tests/compositions/downsizetest.xml
new file mode 100644
index 0000000..307320a
--- /dev/null
+++ b/tests/compositions/downsizetest.xml
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>35.000000</param>
+ <param name='y'>10.000000</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:scale'>
+ <params>
+ <param name='origin-x'>0.000000</param>
+ <param name='origin-y'>0.000000</param>
+ <param name='filter'>downsize</param>
+ <param name='hard-edges'>false</param>
+ <param name='lanczos-width'>3</param>
+ <param name='x'>0.236328125</param>
+ <param name='y'>0.231770833</param>
+ </params>
+ </node>
+ <node operation='gegl:rotate'>
+ <params>
+ <param name='degrees'>7.000000</param>
+ <param name='filter'>downsize</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name="path">data/car-stack.png</param>
+ </params>
+ </node>
+ </node>
+</gegl>
diff --git a/tests/compositions/downsmoothtest.xml b/tests/compositions/downsmoothtest.xml
new file mode 100644
index 0000000..93582f0
--- /dev/null
+++ b/tests/compositions/downsmoothtest.xml
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>35.000000</param>
+ <param name='y'>10.000000</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:scale'>
+ <params>
+ <param name='origin-x'>0.000000</param>
+ <param name='origin-y'>0.000000</param>
+ <param name='filter'>downsmooth</param>
+ <param name='hard-edges'>false</param>
+ <param name='lanczos-width'>3</param>
+ <param name='x'>0.236328125</param>
+ <param name='y'>0.231770833</param>
+ </params>
+ </node>
+ <node operation='gegl:rotate'>
+ <params>
+ <param name='degrees'>7.000000</param>
+ <param name='filter'>downsmooth</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name="path">data/car-stack.png</param>
+ </params>
+ </node>
+ </node>
+</gegl>
diff --git a/tests/compositions/reference/downsharptest.png b/tests/compositions/reference/downsharptest.png
new file mode 100644
index 0000000..6612862
Binary files /dev/null and b/tests/compositions/reference/downsharptest.png differ
diff --git a/tests/compositions/reference/downsizetest.png b/tests/compositions/reference/downsizetest.png
new file mode 100644
index 0000000..c89b64b
Binary files /dev/null and b/tests/compositions/reference/downsizetest.png differ
diff --git a/tests/compositions/reference/downsmoothtest.png b/tests/compositions/reference/downsmoothtest.png
new file mode 100644
index 0000000..e2a609e
Binary files /dev/null and b/tests/compositions/reference/downsmoothtest.png differ
diff --git a/tests/compositions/reference/upsharptest.png b/tests/compositions/reference/upsharptest.png
new file mode 100644
index 0000000..ca260d0
Binary files /dev/null and b/tests/compositions/reference/upsharptest.png differ
diff --git a/tests/compositions/reference/upsizetest.png b/tests/compositions/reference/upsizetest.png
new file mode 100644
index 0000000..3938307
Binary files /dev/null and b/tests/compositions/reference/upsizetest.png differ
diff --git a/tests/compositions/reference/upsmoothtest.png b/tests/compositions/reference/upsmoothtest.png
new file mode 100644
index 0000000..c4c64e9
Binary files /dev/null and b/tests/compositions/reference/upsmoothtest.png differ
diff --git a/tests/compositions/upsharptest.xml b/tests/compositions/upsharptest.xml
new file mode 100644
index 0000000..fd5b1fb
--- /dev/null
+++ b/tests/compositions/upsharptest.xml
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>35.000000</param>
+ <param name='y'>10.000000</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:scale'>
+ <params>
+ <param name='origin-x'>0.000000</param>
+ <param name='origin-y'>0.000000</param>
+ <param name='filter'>upsharp</param>
+ <param name='hard-edges'>false</param>
+ <param name='lanczos-width'>3</param>
+ <param name='x'>0.236328125</param>
+ <param name='y'>0.231770833</param>
+ </params>
+ </node>
+ <node operation='gegl:rotate'>
+ <params>
+ <param name='degrees'>7.000000</param>
+ <param name='filter'>upsharp</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name="path">data/car-stack.png</param>
+ </params>
+ </node>
+ </node>
+</gegl>
diff --git a/tests/compositions/upsizetest.xml b/tests/compositions/upsizetest.xml
new file mode 100644
index 0000000..45b2846
--- /dev/null
+++ b/tests/compositions/upsizetest.xml
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>35.000000</param>
+ <param name='y'>10.000000</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:scale'>
+ <params>
+ <param name='origin-x'>0.000000</param>
+ <param name='origin-y'>0.000000</param>
+ <param name='filter'>upsize</param>
+ <param name='hard-edges'>false</param>
+ <param name='lanczos-width'>3</param>
+ <param name='x'>0.236328125</param>
+ <param name='y'>0.231770833</param>
+ </params>
+ </node>
+ <node operation='gegl:rotate'>
+ <params>
+ <param name='degrees'>7.000000</param>
+ <param name='filter'>upsize</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name="path">data/car-stack.png</param>
+ </params>
+ </node>
+ </node>
+</gegl>
diff --git a/tests/compositions/upsmoothtest.xml b/tests/compositions/upsmoothtest.xml
new file mode 100644
index 0000000..983deb1
--- /dev/null
+++ b/tests/compositions/upsmoothtest.xml
@@ -0,0 +1,35 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:over'>
+ <node operation='gegl:crop'>
+ <params>
+ <param name='x'>35.000000</param>
+ <param name='y'>10.000000</param>
+ <param name='width'>64</param>
+ <param name='height'>64</param>
+ </params>
+ </node>
+ <node operation='gegl:scale'>
+ <params>
+ <param name='origin-x'>0.000000</param>
+ <param name='origin-y'>0.000000</param>
+ <param name='filter'>upsmooth</param>
+ <param name='hard-edges'>false</param>
+ <param name='lanczos-width'>3</param>
+ <param name='x'>0.236328125</param>
+ <param name='y'>0.231770833</param>
+ </params>
+ </node>
+ <node operation='gegl:rotate'>
+ <params>
+ <param name='degrees'>7.000000</param>
+ <param name='filter'>upsmooth</param>
+ </params>
+ </node>
+ <node operation='gegl:load'>
+ <params>
+ <param name="path">data/car-stack.png</param>
+ </params>
+ </node>
+ </node>
+</gegl>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]