亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fft2

?? 7653觸摸屏的驅動程序(C語言)
??
字號:
	Well, according to the amount of E-mail I received, and as I cannot
answer to all of them, I am posting the 2D FFT program I have written in C.

	How to use it : first, it can be used only on matrix of the type
complexe, as defined at the begining of the program, with a size in
2^maxlevel (2 power maxlevel). One just have to call the program as following :

	InvFFT(matrix,maxlevel);

	As you have noticed, it is in fact an Inverse Fourier Transform
(sampling matrix in the frequency space -> matrix of heights)  which
is performed, but just an initialisation line at the begining of the
procedure  InvFFT has to be change to obtain the FFT :

	Omega = 2 * M_PI / dimension;      must be change into
	Omega = - 2 * M_PI / dimension;


	I am clearly aware that this program has not been optimised as it
could be, mainly in order to keep the the clarity of the algorithm, but I am
open to any suggestion that you could make in order to improve the process.

	I have tested it in a fractal landscape project and it seems to work
correctly (when there were bugs in it such as forgetting the multiplication
of omega by two at the recursive calls, I had funny landscapes looking like
a micro-chip seen through an electronic microscop).

	Well, I think that is all, for the moment. Here comes the program.

	Note : you will have probably to cut the signature at the end of the
file as well.

					Jean-Marc

----cut here -----cut here -----cut here -----cut here -----cut here -----

/* It is a pity I have to add this notice, but it must be done.           */

/*                         NOTICE                                         *
 * Copyright (c) 1990, Jean-Marc de Lauwereyns                            *
 *               for the procedures mirror, RecFFT, InvFFT.               *
 * These procedures can be used and given freely to anybody but can not   *
 * be sold or used in any commercial program or in any book without the   *
 * permission of the original author.                                     *
 * These procedures can be modified at the condition that the nature of   *
 * modification is mentioned in comments at the place of the modification *
 * with the original lines accompanied by the name of the original author.*
 * This notice itself can not be removed or modified except by the        *
 * original author himself.                                               */

/* you must have included the file /usr/include/math.h at the begining of *
 * your program								  */

typedef struct {
	double a,b;
	} complexe;

/****************************************************/
/* function mirror just transform the binary        */
/* representation of an integer into its mirror     */
/* binary representation on maxlevel bits           */
/* eg : with maxlevel = 6,  000101 becomes 101000   */
/****************************************************/
int mirror(index,maxlevel)
int index;
int maxlevel;
{
  register int i;
  int res;

  res = 0;
  for (i=0;i<maxlevel;i++)
    {
      res = (res << 1) | (index & (int)1);
      index = (index >> 1);
    }
  return(res);
}

/*****************************************************/
/* recursive procedure to calculate the FFT on 2^N   */
/*****************************************************/
void RecFFT(A,k,l,p,q,Omega)
complexe **A;
int k,l; /* indexes for the begin and the end on the lines taken */
int p,q; /* indexes for the begin and the end of the columns taken */
double Omega;
{
  int i,j,m;
  complexe a,b,c,d;
  double argument[3];

  if (k != l)
    {
      m = (l-k)/2;

      for (i = k;i < k + m;i++)
	{
	  argument[0] = Omega * (double)(i-k);
	  for (j = p;j < p + m;j++)
	    {
	      argument[1] = Omega * (double)(j-p);
	      argument[2] = Omega * (double)(i-k + j-p);

	      a.a = A[i][j].a;a.b = A[i][j].b;
	      b.a = A[i+m][j].a;b.b = A[i+m][j].b;
	      c.a = A[i][j+m].a;c.b = A[i][j+m].b;
	      d.a = A[i+m][j+m].a;d.b = A[i+m][j+m].b;

	      A[i][j].a = a.a + b.a + c.a + d.a;
	      A[i][j].b = a.b + b.b + c.b + d.b;

	      A[i+m][j].a = (a.a - b.a + c.a - d.a)*cos(argument[0]) -
		            (a.b - b.b + c.b - d.b)*sin(argument[0]);
	      A[i+m][j].b = (a.a - b.a + c.a - d.a)*sin(argument[0]) +
		            (a.b - b.b + c.b - d.b)*cos(argument[0]);

	      A[i][j+m].a = (a.a + b.a - c.a - d.a)*cos(argument[1]) -
		            (a.b + b.b - c.b - d.b)*sin(argument[1]);
	      A[i][j+m].b = (a.a + b.a - c.a - d.a)*sin(argument[1]) +
		            (a.b + b.b - c.b - d.b)*cos(argument[1]);

	      A[i+m][j+m].a = (a.a - b.a - c.a + d.a)*cos(argument[2]) -
	                      (a.b - b.b - c.b + d.b)*sin(argument[2]);
	      B[i+m][j+m].b = (a.a - b.a - c.a + d.a)*sin(argument[2]) +
		              (a.b - b.b - c.b + d.b)*cos(argument[2]);
	    }
	}
      if (m != 0)
	{
	  RecFFT(k,k+m,p,p+m,Omega*2);
	  RecFFT(k+m,l,p,p+m,Omega*2);
	  RecFFT(k,k+m,p+m,q,Omega*2);
	  RecFFT(k+m,l,p+m,q,Omega*2);
	}
    }
}

/********************************************************/
/* InvFFT is a procedure which produce the inverse of   */
/* Fourier Transformation.                              */
/********************************************************/
void InvFFT(A,interlevel)
complexe **A;
int interlevel;
{
  int dimension;
  int i,j,i1,j1;
  double coeff,Omega;

  dimension = (1 << interlevel);
  Omega = 2 * M_PI / dimension;
  RecFFT(A,0,dimension,0,dimension,Omega);

  for (i=0;i<=(dimension - 1);i++)
    /* swap every rows i with its mirror image */
    {
      i1 = mirror(i,interlevel);
      if (i1 > i)   /* if i1 <= i, the swaaping have been already made */
	for (j=0;j<dimension;j++)
	  {
	    coeff = A[i][j].a;
	    A[i][j].a = A[i1][j].a;
	    A[i1][j].a = coeff;

	    /* this may be remove if you are sure that the result is a  *
	     * matrix of real which means that the original matrix must *
	     * verify the following conditions :                        *
	     *               ______              ______                 *
	     *  A(N-i,N-j) = A(i,j) , A(0,N-j) = A(0,j)                 *
	     *             ______                                       *
	     *  A(N-i,0) = A(i,0) for i,j > 0    and A(0,0) is a pure   *
	     *  real                                                    */

	    coeff = A[i][j].b;
	    A[i][j].a = A[i1][j].a;
	    A[i1][j].a = coeff;
	  }
    }

  for (j=0;j<=(dimension - 1);j++) /* idem for the columns */
    {
      j1 = mirror(j,interlevel);
      if (j1 >j)
	for (i=0;i<dimension;i++)
	  {
	    coeff = A[i][j].a;
	    A[i][j].a = A[i][j1].a;
	    A[i][j1].a = coeff;

	    /* part which may be removed if (see above)   */
	    coeff = A[i][j].b;
	    A[i][j].b = A[i][j1].b;
	    A[i][j1].b = coeff;
	  }
    }
}

----cut here -----cut here -----cut here -----cut here -----cut here ----
Jean-Marc de Lauwereyns     |              ____  |     e-mail addresses :
Heriot-Watt University      |     |\  /|   |   \ | JANET: lauwer@uk.ac.hw.cs
Computer Science Department |     | \/ |   |___/ | ARPA.: lauwer@cs.hw.ac.uk
Edinburgh                   | \___/    |___|   \ |


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美成人激情| 欧美一区二区在线不卡| 国产91精品久久久久久久网曝门| 日韩和欧美的一区| 人人精品人人爱| 免费精品视频在线| 国产伦精品一区二区三区在线观看| 美女视频黄久久| 国内精品不卡在线| 大胆亚洲人体视频| 97精品久久久久中文字幕| 99re在线视频这里只有精品| 色天天综合色天天久久| 在线亚洲一区二区| 欧美日韩国产在线播放网站| 91精品国产色综合久久久蜜香臀| 日韩一区二区视频在线观看| 久久人人97超碰com| 国产午夜精品一区二区| 亚洲日本青草视频在线怡红院| 亚洲一线二线三线视频| 日韩二区在线观看| 国产精品一区专区| 色94色欧美sute亚洲线路一久| 欧美在线你懂得| 久久伊人蜜桃av一区二区| 国产精品女同一区二区三区| 亚洲一区精品在线| 经典三级视频一区| 99国产一区二区三精品乱码| 欧美精品在线观看播放| 国产午夜精品久久久久久久| 亚洲国产欧美日韩另类综合| 久久精品国产色蜜蜜麻豆| 9i在线看片成人免费| 欧美精品在线视频| 最新热久久免费视频| 青青草国产成人av片免费| 成人精品一区二区三区中文字幕| 欧美亚洲综合另类| 国产视频一区二区在线| 首页国产丝袜综合| 成人午夜激情影院| 日韩欧美亚洲国产精品字幕久久久| 中文字幕一区二区三区蜜月| 免费日韩伦理电影| 91久久国产最好的精华液| 精品国产一二三区| 婷婷中文字幕综合| 91在线视频免费91| 国产欧美一二三区| 精品一区二区影视| 日韩一区二区三区四区五区六区| 亚洲欧美一区二区三区久本道91 | 精品国产自在久精品国产| 18欧美乱大交hd1984| 国产一区在线精品| 日韩三级av在线播放| 亚洲一区二区在线观看视频| 成人黄色片在线观看| 精品国产一区二区在线观看| 午夜久久久久久久久| 在线观看免费亚洲| 亚洲色图在线视频| 成人国产一区二区三区精品| 国产亚洲综合在线| 国产麻豆午夜三级精品| 精品成人私密视频| 激情另类小说区图片区视频区| 欧美日韩第一区日日骚| 亚洲高清免费观看| 91福利视频久久久久| 亚洲欧美日韩系列| 欧亚一区二区三区| 亚洲一区二区三区在线| 欧美在线999| 亚洲成人在线免费| 欧美精品久久久久久久久老牛影院 | 欧美一卡二卡在线| 午夜影院久久久| 99精品视频一区| 综合婷婷亚洲小说| 91九色02白丝porn| 日韩和的一区二区| 2021国产精品久久精品| 极品销魂美女一区二区三区| 精品少妇一区二区三区在线视频| 美女视频黄 久久| 国产亚洲一区二区三区在线观看| 国产精品18久久久久久久久| 中文字幕成人av| 日本道免费精品一区二区三区| 亚洲国产综合91精品麻豆| 欧美一区二区三区在线视频| 久久66热偷产精品| 亚洲欧美自拍偷拍色图| 欧洲精品一区二区| 久久成人免费网| 国产精品美女久久久久久久久| 欧美在线观看一二区| 美国av一区二区| 欧美国产一区在线| 欧美日韩精品免费观看视频| 经典三级视频一区| 亚洲黄色小说网站| 久久久精品综合| 91久久精品一区二区三| 精品在线免费视频| 亚洲人成伊人成综合网小说| 欧美一级欧美三级| 成人一区二区三区| 日本成人超碰在线观看| 国产精品久久久久久一区二区三区| 日本久久一区二区三区| 九九国产精品视频| 亚洲精品精品亚洲| 久久久久久综合| 欧美日韩的一区二区| 成人免费视频国产在线观看| 日韩影视精彩在线| 亚洲免费电影在线| 国产亚洲精品福利| 日韩欧美一区二区三区在线| 一道本成人在线| 大胆亚洲人体视频| 精品一区二区三区av| 亚洲国产一区二区视频| 国产精品乱码一区二区三区软件| 欧美精品高清视频| 在线看国产一区| 成人av网站免费观看| 国内精品第一页| 久久99精品视频| 免费观看在线色综合| 日日夜夜精品免费视频| 亚洲精选视频免费看| 国产精品传媒入口麻豆| 2021国产精品久久精品| 日韩欧美不卡在线观看视频| 欧美肥妇毛茸茸| 欧美色偷偷大香| 精品视频在线免费| 欧美在线|欧美| 91久久线看在观草草青青| 91蜜桃传媒精品久久久一区二区| 岛国精品一区二区| 国产99久久久国产精品潘金网站| 久久99精品国产麻豆婷婷洗澡| 秋霞午夜鲁丝一区二区老狼| 午夜精品成人在线| 亚洲国产一区视频| 日日夜夜精品视频免费| 日韩国产一区二| 久久精品国产澳门| 国产一区二区免费视频| 国产精品亚洲а∨天堂免在线| 激情伊人五月天久久综合| 秋霞午夜av一区二区三区 | xnxx国产精品| 精品粉嫩超白一线天av| 久久久久久久电影| 中文字幕一区二区三区不卡 | 久久久久久久久蜜桃| 久久嫩草精品久久久久| 国产偷国产偷精品高清尤物| 国产精品久久久久影院| 亚洲精品国产成人久久av盗摄 | 国产精品亚洲午夜一区二区三区| 国产精品亚洲综合一区在线观看| 国产成人在线网站| 色综合久久久久网| 欧美一区二区免费观在线| 欧美精品一区二区三区在线播放| 欧美国产一区二区在线观看| 亚洲精品国产成人久久av盗摄| 午夜精品福利一区二区蜜股av | 久久综合av免费| 中日韩av电影| 天天综合天天综合色| 久久se精品一区二区| hitomi一区二区三区精品| 欧美日韩成人综合| 日本一区二区免费在线| 亚洲一区在线观看免费| 乱一区二区av| 在线观看一区日韩| 26uuu精品一区二区三区四区在线| 亚洲欧洲韩国日本视频| 日韩一区欧美二区| 91亚洲午夜精品久久久久久| 日韩亚洲国产中文字幕欧美| 亚洲视频1区2区| 国产在线精品不卡| 欧美日韩久久久一区| 国产亚洲精品中文字幕| 午夜精品免费在线观看| 成人免费黄色大片| 日韩免费看的电影| 婷婷夜色潮精品综合在线| 色天使色偷偷av一区二区|