gegl r2530 - in branches/branch2_zhangjb: . operations/frequency/tools



Author: zhangjb
Date: Fri Jul 11 17:17:31 2008
New Revision: 2530
URL: http://svn.gnome.org/viewvc/gegl?rev=2530&view=rev

Log:
* operations/frequency/tools/filters.c: modified getH_lowpass_gaussian.


Modified:
   branches/branch2_zhangjb/ChangeLog
   branches/branch2_zhangjb/operations/frequency/tools/filters.c

Modified: branches/branch2_zhangjb/operations/frequency/tools/filters.c
==============================================================================
--- branches/branch2_zhangjb/operations/frequency/tools/filters.c	(original)
+++ branches/branch2_zhangjb/operations/frequency/tools/filters.c	Fri Jul 11 17:17:31 2008
@@ -93,13 +93,15 @@
                       gint cutoff)
 {
   gint x, y;
+  gint x0, y0, xd:
+  
   for (x=0; x<FFT_HALF(width); x++)
     {
       for (y=0; y<height; y++)
         {
           Hi[ELEM_ID_HALF_MATRIX(x, y, width)] = 0;
           Hr[ELEM_ID_HALF_MATRIX(x, y, width)]
-            = exp(0 - (x*x+y*y)/2/(cutoff*cutoff));
+            = exp(0 - ((x)*(x)+(y-height/2)*(y-height/2)/2/(cutoff*cutoff));
         }
     }
   retrun TRUE;



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