[gegl] tests: add a test-case for contrast-curve
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: add a test-case for contrast-curve
- Date: Thu, 31 Oct 2013 11:02:40 +0000 (UTC)
commit 1814716afbceb43e813b2726c135cd4ff8f591a7
Author: Téo Mazars <teo mazars ensimag fr>
Date: Thu Oct 24 16:47:14 2013 +0200
tests: add a test-case for contrast-curve
tests/compositions/Makefile.am | 1 +
tests/compositions/contrast-curve.xml | 21 +++++++++++++++++++++
tests/compositions/reference/contrast-curve.png | Bin 0 -> 281055 bytes
3 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 2ccd48c..ee9817e 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -22,6 +22,7 @@ TESTS = \
colors.xml \
color-to-alpha.xml \
composite-transform.xml \
+ contrast-curve.xml \
edge-laplace.xml \
edge-sobel.xml \
fattal02.xml \
diff --git a/tests/compositions/contrast-curve.xml b/tests/compositions/contrast-curve.xml
new file mode 100644
index 0000000..ff26745
--- /dev/null
+++ b/tests/compositions/contrast-curve.xml
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+ <node operation='gegl:contrast-curve'>
+ <params>
+ <param name='sampling-points'>30</param>
+ <param name='curve'>
+ <curve ymin='0.0' ymax='1.0'>
+ <curve-point x='0.0' y='1.0'/>
+ <curve-point x='0.5' y='0.3'/>
+ <curve-point x='1.0' y='0.0'/>
+ </curve>
+ </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/contrast-curve.png b/tests/compositions/reference/contrast-curve.png
new file mode 100644
index 0000000..27d3098
Binary files /dev/null and b/tests/compositions/reference/contrast-curve.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]