广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 2822 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为IE收藏   收藏主题   上一主题 | 下一主题   
emil5201314
数位造型
个人文章 个人相簿 个人日记 个人地图
路人甲
级别: 路人甲 该用户目前不上站
推文 x0 鲜花 x2
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
推文 x0
[C/C++] 关于2D_FFT的演算法
小弟利用网路上的范例,做成2D_FFT。但是做出来的数值跟MATLAB的误差差很多。
请问各位前辈小弟哪里有做错???
假设影像为F
CODE:

#include <dos.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
struct COMPLEX {
float r, i;
};
/********************************************************************/
/* */
/* functions perform 1D and 2D Fast Fourier Transform */
/* */
/* _1Dfft(struct COMPLEX *F, int log2n,int n, int ntype) */
/* ntype: 0 forward fourier transform */
/* else inverse fourier transform */
/* F: pointer to the 1D complex array */
/* n: length of F */
/* */
/* _2Dfft(struct COMPLEX *F, int n, int log2n, int ntype) */
/* ntype: 0 forward fourier transform */
/* else inverse fourier transform */
/* F: pointer to the 2D complex array */
/* n: length of F */
/ ..

访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容




献花 x0 回到顶端 [楼 主] From: | Posted:2006-09-27 17:02 |

首页  发表文章 发表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.013550 second(s),query:15 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言