Fourier transformation from image to grid space, along a given axis.
a – numpy array, 1D or 2D (image in lm coordinate space)
axis – int; axes over which to calculate
numpy array (uv grid)