shift

Function shift 

Source
pub fn shift<S, A>(
    data: &ArrayBase<S, Ix3>,
    shift: [f64; 3],
    order: usize,
    mode: BorderMode<A>,
    prefilter: bool,
) -> Array<A, Ix3>
where S: Data<Elem = A>, A: Copy + Num + FromPrimitive + PartialOrd + ToPrimitive,
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 is true, which will create a temporary f64 array of filtered values if order > 1. If setting this to false, the output will be slightly blurred if order > 1, unless the input is prefiltered.