ifftshift2D#

Perform a 2D inverse by shifting a zero-frequency-shifted version back to the original

template<typename T1>
auto matx::ifftshift2D(T1 t)#

Perform an IFFTShift operation on a 2D tensor swapping the first quadrant with the third, and the second with the fourth.

Shifts the new indexing of the tensor’s last dimension to begin at Size()/2. MatX FFTs leave the sample order starting with DC, positive frequencies, then negative frequencies last. IFFTShift gives a shifted view of a signal where the new order is negative frequencies, DC, then positive frequencies. Note that ifftshift is the same as fftshift if the length of the signal is even.

Template Parameters:

T1 – Type of View/Op

Parameters:

t – View/Op to shift

Examples#

(t2s = ifftshift2D(t2)).run(exec);