[gimp] Bug 623850 - (Paco) Recursive Gaussian Filter error



commit 2643107912f4ca078c77640dc42875f5edb0ad56
Author: Massimo Valentini <sixtysix inwind it>
Date:   Thu Sep 16 19:47:37 2010 +0200

    Bug 623850 - (Paco) Recursive Gaussian Filter error

 plug-ins/common/contrast-retinex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/contrast-retinex.c b/plug-ins/common/contrast-retinex.c
index 669e91a..6767a88 100644
--- a/plug-ins/common/contrast-retinex.c
+++ b/plug-ins/common/contrast-retinex.c
@@ -599,7 +599,7 @@ gausssmooth (gfloat *in, gfloat *out, gint size, gint rowstride, gauss3_coefs *c
   w2[size+3]= w1[size+3];
   for (i = size, n = i; i >= 0; i--, n--)
     {
-      w2[n]= out[i * rowstride] = (gfloat)(c->B*w1[n] +
+      w2[n]= out[i * rowstride] = (gfloat)(c->B*w1[n+3] +
                                            ((c->b[1]*w2[n+1] +
                                              c->b[2]*w2[n+2] +
                                              c->b[3]*w2[n+3] ) / c->b[0]));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]