pad

Function pad 

Source
pub fn pad<S, A, D>(
    data: &ArrayBase<S, D>,
    pad: &[[usize; 2]],
    mode: PadMode<A>,
) -> Array<A, D>
where S: Data<Elem = A>, A: Copy + FromPrimitive + Num + PartialOrd, D: Dimension,
Expand description

Pad an image.

  • data - A N-D array of the data to pad.
  • pad - 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.