pub fn shift<S, A>(
data: &ArrayBase<S, Ix3>,
shift: [f64; 3],
order: usize,
mode: BorderMode<A>,
prefilter: bool,
) -> Array<A, Ix3>Expand description
Shift an array.
The array is shifted using spline interpolation of the requested order. Points outside the boundaries of the input are filled according to the given mode.
data- A 3D array of the data to shift.shift- The shift along the axes.order- The order of the spline.mode- The mode parameter determines how the input array is extended beyond its boundaries.prefilter- Determines if the input array is prefiltered with spline_filter before interpolation. The default istrue, which will create a temporaryf64array of filtered values iforder > 1. If setting this tofalse, the output will be slightly blurred iforder > 1, unless the input is prefiltered.