zoom_on_pixel

image_registration.fft_tools.zoom.zoom_on_pixel(inp, coordinates, usfac=1, outshape=None, nthreads=1, use_numpy_fft=False, return_real=True, return_xouts=False)[source]

Zoom in on a 1D or 2D array using Fourier upsampling (in principle, should work on N-dimensions, but does not at present!)

Parameters:
inpnp.ndarray

Input 1D array

coordinatestuple of floats

Pixel to zoom in on

usfacint

Upsampling factor

outshapeint

Number of pixels in output array

Returns:
The input array upsampled by a factor usfac with size outshape.
If return_xouts, returns a tuple (xvals, zoomed)
Other Parameters:
return_xoutsbool

Return the X indices of the output array in addition to the scaled array

return_realbool

Return the real part of the zoomed array (if True) or the complex