function Y = fft2(X) % FFT2 Discrete Quaternion Fourier transform. % (Quaternion overloading of standard Matlab function, but only one parameter.) % (The parameters m and n of the standard function are not yet implemented.) % % This function implements a default quaternion 2D-FFT. See the related function % QFFT2, which implements transforms with left or right exponentials and a % user-specified axis. % Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan. % See the file : Copyright.m for further details. % Implementation note: keeping QFFT2 separate means that the quaternion-specific % parameters (axis and left/right) are kept separate from the Matlab standard % parameters (n and m) which might be added here at a later date. error(nargchk(1, 1, nargin)), error(nargoutchk(0, 1, nargout)) Y = qfft2(X, dft_axis(isreal(X)), 'L');