MyFourierBuffer Class Reference
[Processing classes]

Class used to wrap the Fourier transform with FFTW library. More...

#import <fourier.h>

Inheritance diagram for MyFourierBuffer:

Inheritance graph
[legend]
Collaboration diagram for MyFourierBuffer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithNumberOfPlanes:width:height:withGoal:
 Allocates a new empty buffer.
(void) - directTransform
 Compute the direct transform.
(void) - inverseTransform::
 Compute the inverse transform, normalize the result and returns the values extremes.
(void) - normalize
 Normalize the spectrum to a 1.0 continous level.
(void) - conjugate
 Transform the spectrum pixels into their conjugate.
(void) - multiplyWith:result:
 Multiplication.
(void) - multiplyWithConjugateOf:result:
 Multiplication with conjugate.
(void) - divideBy:result:
 Division.

Static Public Member Functions

(MyFourierBuffer *) + fourierBufferWithNumberOfPlanes:width:height:withGoal:
 Allocates a new empty buffer.

Public Attributes

u_short _halfw
 The spectrum has only half the image width (complex pixels).
u_short _spadw
 Spectrum padded width.


Detailed Description

Class used to wrap the Fourier transform with FFTW library.

Member Function Documentation

- (id) initWithNumberOfPlanes: (u_char)  nPlanes
width: (u_short)  w
height: (u_short)  h
withGoal: (u_char)  goal 

Allocates a new empty buffer.

Parameters:
nPlanes Number of color planes for this image
w Image pixels width
h Image pixels height
goal What kind of transform to prepare, direct, inverse or both.
Returns:
The allocated and initialized buffer, ready for FFT.

- (void) directTransform  

Compute the direct transform.

Returns:
none

- (void) inverseTransform: (REAL*)  vmin
: (REAL*)  vmax 

Compute the inverse transform, normalize the result and returns the values extremes.

Parameters:
vmin Minimum pixel value
vmax Maximum pixel value

- (void) multiplyWith: (MyFourierBuffer*)  term
result: (MyFourierBuffer*)  result 

Multiplication.

Parameters:
term other term
result where the result is stored, can be one of the terms term shall either have the same number of planes as the receiver or only one plane. In the latter case, the plane is applied to each planes of the receiver.

- (void) multiplyWithConjugateOf: (MyFourierBuffer*)  term
result: (MyFourierBuffer*)  result 

Multiplication with conjugate.

Parameters:
term other term (shall be a spectrum)
result where the result is stored, can be one of the terms term shall either have the same number of planes as the receiver or only one plane. In the latter case, the plane is applied to each planes of the receiver.

- (void) divideBy: (MyFourierBuffer*)  denom
result: (MyFourierBuffer*)  result 

Division.

Parameters:
denom Denominator of the division
result where the result is stored, can be one of the terms term shall either have the same number of planes as the receiver or only one plane. In the latter case, the plane is applied to each planes of the receiver.

+ (MyFourierBuffer *) fourierBufferWithNumberOfPlanes: (u_char)  nPlanes
width: (u_short)  w
height: (u_short)  h
withGoal: (u_char)  goal 

Allocates a new empty buffer.

Parameters:
nPlanes Number of color planes for this image
w Image pixels width
h Image pixels height
goal What kind of transform to prepare, direct, inverse or both.
Returns:
The allocated and initialized buffer, ready for FFT.


The documentation for this class was generated from the following files:
Generated on Sat Mar 22 17:44:50 2008 for Lynkeos by  doxygen 1.5.4