[gegl] noise-reduction: fix symmetric logic
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] noise-reduction: fix symmetric logic
- Date: Sun, 19 Jun 2011 01:15:51 +0000 (UTC)
commit 2d91e08e20618b275f53cab35691c869a72bbad5
Author: Ãyvind KolÃs <pippin gimp org>
Date: Sun Jun 19 02:15:40 2011 +0100
noise-reduction: fix symmetric logic
operations/common/noise-reduction.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/noise-reduction.c b/operations/common/noise-reduction.c
index 75c6a25..a338f78 100644
--- a/operations/common/noise-reduction.c
+++ b/operations/common/noise-reduction.c
@@ -18,7 +18,7 @@
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (iterations, "Iterations", 1, 200, 6, "Number of iterations, more iterations takes longer time but might also make the image less noise, the number of iterations is the longest distance pixel content from one pixel can be diffusd out in the image.")
+gegl_chant_int (iterations, "Iterations", 1, 32, 5, "Number of iterations, more iterations takes longer time but might also make the image less noise, the number of iterations is the longest distance pixel content from one pixel can be diffusd out in the image.")
#else
@@ -129,7 +129,7 @@ noise_reduction (GeglBuffer *src,
#define OFFSETS 8
/* fetch symmetric entry */
-#define SYMMETRY(a) (a+(OFFSETS/2))
+#define SYMMETRY(a) (OFFSETS - a - 1)
int rel_offsets[OFFSETS][2] = {
{ -1, -1}, {0, -1},{1, -1},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]