resample3d#
- scarlet2.interpolation.resample3d(signal, coords, warp, interpolant)[source]#
Resample a 3-dimensional image using a Lanczos kernel
- Parameters:
signal (
array) – 3d array containing the signal. We assume here that the coordinates of the signal. Shape: [C, Ny, Nx]coords (
array) – Coordinates on which the signal is sampled. Shape: [Ny, Nx, 2] y-coordinates are coords[0,:,0], x-coordinates are coords[:,0,1].warp (
array) – Coordinates on which to resample the signal. Shape:[ny, nx, 2] [ [[0, 0], [0, 1], …, [0, N-1]], [ … ], [[N-1,0], [N-1,1], …, [N-1,N ]] ]interpolant (
Interpolant) – Instance of interpolant
- Returns:
Resampled signal at the location indicated by warp
- Return type:
array
See also