fftshift2D

fftshift2D#

Perform a 2D shift by shifting the zero-frequency component to the center of the tensor

template<typename T1>
auto matx::fftshift2D(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.

Template Parameters:

T1 – Type of View/Op

Parameters:

t – View/Op to shift

Examples#

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