MRI_FFT.TwoD module¶
For use when a 2D output array is required.
It includes two classes:
“Direct2d”, for when all of the k-space data is available immediately, and
“OneDDecomp”, or one-dimensional decomposition, for when one dimensional k-space data can be processed during the scan.
-
class
MRI_FFT.TwoD.Direct2d(shape)[source]¶ Bases:
objectCalculates the inverse Fourier’s transform of a 3D numpy array directly
Parameters: shape (1D array) – The shape of the 2D array that contains the k-space data to be transformed
-
class
MRI_FFT.TwoD.OneDDecomp(shape, inputAxis)[source]¶ Bases:
objectCalculates the inverse Fourier’s transform of a 2D numpy array using 1D decomposition
This class should be used when 2D data becomes available during the 3D scan.
Parameters: - shape (2D array) – The shape of the 2D array that contains the k-space data to be transformed
- inputAxis (Integer: 0 or 1) – The direction in which to append the 1D arrays. For example, for inputAxis == 0, the arrays will be entered as follows [0, :], [1, :], etc
-
append1D(array1D)[source]¶ Calculates the 1D iFFT, then appends it to the 2D array.
When the last 2D array is entered, the 3D iFFT is calculated and returned.
Parameters: array1D (A complex or real 1D numpy array) – An array of k-space data Returns: The transformed complete array Return type: A complex64 2D numpy array Note
1D arrays must be entered in order