Function ndarray_ndimage::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 thePadModeenum for more information.