zoom1d¶
- image_registration.fft_tools.zoom.zoom1d(inp, usfac=1, outsize=None, offset=0, nthreads=1, use_numpy_fft=False, return_xouts=False, return_real=True)[source]¶
Zoom in to the center of a 1D array using Fourier upsampling
- Parameters:
- inpnp.ndarray
Input 1D array
- usfacint
Upsampling factor
- outsizeint
Number of pixels in output array
- offsetfloat
Offset from center in original pixel units
- Returns:
- The input array upsampled by a factor
usfac
with sizeoutsize
. - If
return_xouts
, returns a tuple (xvals, zoomed)
- The input array upsampled by a factor
- 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