Function ndarray_ndimage::pad[][src]

pub fn pad<T>(
    data: ArrayView3<'_, T>,
    pad_width: (usize, usize, usize),
    mode: PadMode
) -> Array3<T> where
    T: Zero + Clone + Copy
Expand description

Pad an image.

  • data - A 3D view to the data to pad.
  • pad_width - Number of values padded to the edges of each axis.
  • mode - Method that will be used to select the padded values. See the PadMode enum for more information.