pad_to

Function pad_to 

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

Pad an image.

Write the result in the already_allocated array output.

  • 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.
  • output - An already allocated N-D array used to write the results.