resample_hermitian#
- scarlet2.interpolation.resample_hermitian(signal, warp, x_min, y_min, interpolant=Quintic(extent=3))[source]#
Resample a 2-dimensional image using an interpolation kernel
This is assuming that the signal is Hermitian and starting at 0 on axis=2, i.e. f(-x, -y) = conjugate(f(x, y))
- Parameters:
signal (
array) – 2d array containing the signal. We assume here that the coordinates of the signal shape: [Nx, Ny]warp (
array) – Coordinates on which to resample the signal, in the grid of signal coordinates [[0 … signal.shape[0]], [0 … signal.shape[1]] shape:[nx, ny, 2] [ [[0, 0], [0, 1], …, [0, N-1]], [ … ], [[N-1,0], [N-1,1], …, [N-1,N ]] ]x_min (
float) – Left coordinate of corner of bounding box that defines the location of signaly_min (
float) – Low coordinate of corner of bounding box that defines the location of signalinterpolant (
Interpolant) – Instance of interpolant
- Returns:
Resampled signal at the location indicated by warp
- Return type:
array