FrontPage  Index  Search  Changes  RSS  Login

FFT2

Brief

Usage

Methods

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)

Visualizing Image

void getImage(Image &absolute)
void getImage(Matrix &absolute)
void getImage(Matrix &reali, Matrix &imagi)

Visualizing Spectrum

void getSpectrum(Image &absolute, double gamma)
void getSpectrum(Matrix &absolute, double gamma = 1.0)
void getSpectrum(Matrix &reali, Matrix &imagi)

Utilities

Visualizing Spectrum

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)

Filtering

static void filterImage(const Image &source, Image &result, const Matrix &carnel)
static void filterImage(const Matrix &source, Image &result, const Matrix &carnel)

Generating Filter

static Matrix makeFilter(int height, int width, double cutoff_lambda1, double cutoff_lambda2, double half_power_width = 0.70710678118655)
static Matrix makeFilterSector(int height, int width, double cutoff_lambda1, double cutoff_lambda2, double theta1, double theta2, double half_power_width = 0.70710678118655, double half_power_width_ori = PI/90.0)
static int originFor(int size)
Last modified:2010/04/10 17:49:15
Keyword(s):
References:[Reference Manual]