[gegl] test-image-compare: make tolarance 1/200th LAB deltaE
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] test-image-compare: make tolarance 1/200th LAB deltaE
- Date: Tue, 22 Aug 2017 17:29:16 +0000 (UTC)
commit 12207501512a01fa911e1f0a4288a3ad544874f8
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Aug 22 19:28:00 2017 +0200
test-image-compare: make tolarance 1/200th LAB deltaE
This is 4 still order of magnitude better than the assumed fidelity of the HVS,
whic his what color is for :)
tests/simple/test-image-compare.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/simple/test-image-compare.c b/tests/simple/test-image-compare.c
index 6e16474..d93479b 100644
--- a/tests/simple/test-image-compare.c
+++ b/tests/simple/test-image-compare.c
@@ -108,7 +108,7 @@ compare_values (GeglNode *comparison,
test_result = SUCCESS;
if (fabs (actual_result.max_diff - expected_result->max_diff)
- > GEGL_FLOAT_EPSILON * 100)
+ > 0.005)
{
g_printerr ("The max_diff property differs: %f instead of %f. ",
(gfloat) actual_result.max_diff,
@@ -116,7 +116,7 @@ compare_values (GeglNode *comparison,
test_result = FAILURE;
}
if (fabs (actual_result.avg_diff_wrong - expected_result->avg_diff_wrong)
- > GEGL_FLOAT_EPSILON * 100)
+ > 0.005)
{
g_printerr ("The avg_diff_wrong property differs: %f instead of %f. ",
(gfloat) actual_result.avg_diff_wrong,
@@ -124,7 +124,7 @@ compare_values (GeglNode *comparison,
test_result = FAILURE;
}
if (fabs (actual_result.avg_diff_total - expected_result->avg_diff_total)
- > GEGL_FLOAT_EPSILON * 100)
+ > 0.005)
{
g_printerr ("The avg_diff_total property differs: %f instead of %f. ",
(gfloat) actual_result.avg_diff_total,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]