Skip to main content

fourier_shift

Function fourier_shift 

Source
pub fn fourier_shift(
    input: &Array2<Complex<f64>>,
    shift: (f64, f64),
    spectrum: Spectrum,
) -> Result<Array2<Complex<f64>>, ErrorsJSL>
Expand description

A shift by shift = (rows, columns) pixels, which need not be whole: multiplies by the phase ramp exp(−2πi (s_r f_r + s_c f_c)). Content moves towards larger indices for positive shifts, wrapping round the edges.