Line | |
---|
1 | function Y = fft2(X) |
---|
2 | % FFT2 Discrete Quaternion Fourier transform. |
---|
3 | % (Quaternion overloading of standard Matlab function, but only one parameter.) |
---|
4 | % (The parameters m and n of the standard function are not yet implemented.) |
---|
5 | % |
---|
6 | % This function implements a default quaternion 2D-FFT. See the related function |
---|
7 | % QFFT2, which implements transforms with left or right exponentials and a |
---|
8 | % user-specified axis. |
---|
9 | |
---|
10 | % Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan. |
---|
11 | % See the file : Copyright.m for further details. |
---|
12 | |
---|
13 | % Implementation note: keeping QFFT2 separate means that the quaternion-specific |
---|
14 | % parameters (axis and left/right) are kept separate from the Matlab standard |
---|
15 | % parameters (n and m) which might be added here at a later date. |
---|
16 | |
---|
17 | error(nargchk(1, 1, nargin)), error(nargoutchk(0, 1, nargout)) |
---|
18 | |
---|
19 | Y = qfft2(X, dft_axis(isreal(X)), 'L'); |
---|
Note: See
TracBrowser
for help on using the repository browser.