FFT2
使い方
FFTのプログラムガイドを参考にお願いします。
メソッド
Initialize
- FFT2(int width, int height)
- FFT2(const Image &source)
- FFT2(const Matrix &source)
- FFT2(const Matrix &reali, const Matrix &imagi)
- void release()
- void set(int wid, int hei)
- void set(const Image &source)
- void set(const Matrix &source)
- void set(const Matrix &reali, const Matrix &imagi)
Accesser to elements
- int freqX(int x) const
- int freqY(int y) const
- double pix(int x, int y, double l)
- double pix(int x, int y, const Color &c)
- double getPix(int x, int y)
- double getDC()
- double setDC(double l)
Core FFT Execution
- void fft()
- void ifft()
- void normalizeFFT()
Core Filter
- void filtering(const Matrix &filter)
Visualizer (read only)
原画像空間の可視化
- void getImage(Image &absolute)
- void getImage(Matrix &absolute)
- void getImage(Matrix &reali, Matrix &imagi)
スペクトル空間の可視化
- void getSpectrum(Image &absolute, double gamma)
- void getSpectrum(Matrix &absolute, double gamma = 1.0)
- void getSpectrum(Matrix &reali, Matrix &imagi)
Utilities
スペクトル確認
- static void getSpectrum(const Image &source, Image &result, double gamma)
- static void getSpectrum(const Matrix &source, Image &result, double gamma)
- static void getSpectrum(const Image &source, Image &reali, Image &imagi, double gamma)
- static void getSpectrum(const Matrix &source, Image &reali, Image &imagi, double gamma)
フィルタ
- static void filterImage(const Image &source, Image &result, const Matrix &carnel)
- static void filterImage(const Matrix &source, Image &result, const Matrix &carnel)
フィルタ生成
- static Matrix makeFilter(int height, int width, double cutoff_cpi1, double cutoff_cpi2, double half_power_width = 0.70710678118655)
- 確認用サンプルコード
- static Matrix makeFilterSector(int height, int width, double cutoff_cpi1, double cutoff_cpi2, double theta1, double theta2, double half_power_width = 0.70710678118655, double half_power_width_ori = PI/90.0)
- static int originFor(int size)
キーワード:
参照:[Change in Psychlops 1.5.0] [リファレンスマニュアル]