gegl r2525 - in branches/branch2_zhangjb: . operations/frequency/tools
- From: zhangjb svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2525 - in branches/branch2_zhangjb: . operations/frequency/tools
- Date: Mon, 7 Jul 2008 09:58:17 +0000 (UTC)
Author: zhangjb
Date: Mon Jul 7 09:58:17 2008
New Revision: 2525
URL: http://svn.gnome.org/viewvc/gegl?rev=2525&view=rev
Log:
* operations/frequency/tools/fourier.c: (homo_dft), (homo_idft)
Modified:
branches/branch2_zhangjb/ChangeLog
branches/branch2_zhangjb/operations/frequency/tools/fourier.c
Modified: branches/branch2_zhangjb/operations/frequency/tools/fourier.c
==============================================================================
--- branches/branch2_zhangjb/operations/frequency/tools/fourier.c (original)
+++ branches/branch2_zhangjb/operations/frequency/tools/fourier.c Mon Jul 7 09:58:17 2008
@@ -117,7 +117,7 @@
{
glong i;
- for (i=0; i<FFT_HALF(width)*height; i++)
+ for (i=0; i<width*height; i++)
{
src_buf[i] = log(src_buf[i]);
}
@@ -130,11 +130,10 @@
{
glong i;
- for (i=0; i<FFT_HALF(width)*height; i++)
- {
- src_buf[i][0] = exp(src_buf[i][0]);
- src_buf[i][1] = exp(src_buf[i][1]);
- }
idft(src_buf, dst_buf, width, height);
+ for (i=0; i<width*height; i++)
+ {
+ dst_buf[i] = exp(dst_buf[i]);
+ }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]