zoom

Function zoom 

Source
pub fn zoom<S, A>(
    data: &ArrayBase<S, Ix3>,
    zoom: [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

Zoom an array.

The array is zoomed using spline interpolation of the requested order.

  • data - A 3D array of the data to zoom
  • zoom - The zoom factor 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.