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



commit 2782c8bb3d519a5959870558d7ae385356ca97dd
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 bf9c536..71786ca 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]