fftn(API)
提供: Eospedia
DataManip/mrcImage/src/fftnは、FFT処理のためのAPI です。
定数
構造体
API
使用メモリーを解放
FFT処理で使用しているfftn.c内のメモリーを解放します。
extern void fft_free (void);
FFT処理
double型
extern int fftn (int ndim, const int dims[], double Re[], double Im[], int isign, double scaling);
float型
extern int fftnf (int ndim, const int dims[], float Re[], float Im[], int isign, double scaling);
Re, Im: 入出力
変数の意味
これらのAPI内で使用されている変数は以下のような用途で使用されています。
Re[]: 実部の配列 Im[]: 虚部の配列 nTotal: 全複素数の数(各成分のサイズ(dims[])を全て掛けた値) nPass: number of elements involved in this pass of transform nSpan: nspan/nPass = number of bytes to increment pointer in Re[] and Im[] isign: exponent: +1 = forward -1 = reverse scaling: normalizing constant by which the final result is *divided* scaling == -1, normalize by total dimension of the transform scaling < -1, normalize by the square-root of the total dimension