resample_fourier

resample_fourier#

scarlet2.interpolation.resample_fourier(kimage, shape_in, shape_out, jacobian=None, shift=None, interpolant=Quintic(extent=3))[source]#

Resampling operation

This method uses the Fourier space resampling technique from Gruen & Bernstein (2014). It assumes that the signal is Hermitian and starting at 0 on axis=2, i.e. f(-x, -y) = conjugate(f(x, y))

Parameters:
  • kimage (array) – Complex array of image in Fourier space

  • shape_in (tuple) – Shape of input image in configuration space

  • shape_out (tuple) – Shape of output image in configuration space

  • jacobian (jnp.array) – 2x2 transformation matrix from warped to unwarped coordinates (in x/y convention)

  • shift (tuple) – Shift of the output image (in units of output pixels)

  • interpolant (Interpolant) – Interpolation kernel function

Return type:

array