2.11.1.2 fft2(Pro)
Menu Information
Analysis: Signal Processing: FFT: 2D FFT
Brief Information
Compute 2D fourier transform of data in matrix
Additional Information
This feature is for OriginPro only.
Command Line Usage
1. fft2 im:=[Mbook]1!Mat(1);
2. fft2 norm:=1;
3. fft2 sc:=1;
4. fft2 norm:=1 sc:=1 ocm:=<none> opm:=<none>; // Do not calculate complex or phase output
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
Display Name
|
Variable Name
|
I/O and Type
|
Default Value
|
Description
|
Input Matrix
|
im
|
Input
MatrixObject
|
<active>
|
Specifies the input matrix.
|
Imaginary Matrix
|
im2
|
Input
MatrixObject
|
<optional>
|
Specifies the imaginary matrix.
|
Normalize Amplitude Matrix
|
norm
|
Input
int
|
0
|
Specifies whether or not to normalize the amplitudes to 1
|
DC Shift Center
|
sc
|
Input
int
|
0
|
If this variable is 1, the DC component will be put in the center of the result matrix. Otherwise, the DC component will locate at four corners of the result matrix.
|
Complex Matrix
|
ocm
|
Output
MatrixObject
|
[<new>]<new>!
|
Specifies the complex result matrix.
See the syntax here.
|
Amplitude Matrix
|
oam
|
Output
MatrixObject
|
[<same>]<new>!
|
Specifies the amplitude matrix.
See the syntax here.
|
Phase Matrix
|
opm
|
Output
MatrixObject
|
[<same>]<new>!
|
Specifies the phase matrix.
See the syntax here.
|
Power Matrix
|
owm
|
Output
MatrixObject
|
[<same>]<new>!
|
Specifies the power matrix
See the syntax here.
|
Log Amplitude Matrix
|
olam
|
Output
MatrixObject
|
[<same>]<new>!
|
Specifies the logarithm base 10 of amplitude matrix.
See the syntax here.
|
Log Power Matrix
|
olwm
|
Output
MatrixObject
|
[<same>]<new>!
|
Specifies the logarithm base 10 of power matrix.
See the syntax here.
|
Examples
1. To compute the 2D FFT of active matrix, use the script command:
fft2
2. To open the fft2 dialog, use the script command:
fft2 -d
3. To perform 2D FFT to data using a pre-saved theme file, save your preferences in the fft2 dialog. Execute it by typing the following script command, using your own saved-theme title:
fft2 -t "my fft2 theme.oth"
More Information
For more information, please refer to our User Guide.
Related X-Functions
ifft2, fft1, ifft1
Keywords:amplitude, phase, power
|