minimum_filter1d

Function minimum_filter1d 

Source
pub fn minimum_filter1d<S, A, D>(
    data: &ArrayBase<S, D>,
    size: usize,
    axis: Axis,
    mode: BorderMode<A>,
    origin: isize,
) -> Array<A, D>
where S: Data<Elem = A>, A: Copy + Num + PartialOrd + ScalarOperand + FromPrimitive, D: Dimension,
Expand description

Calculate a 1-D minimum filter along the given axis.

The lines of the array along the given axis are filtered with a minimum filter of given size.

  • data - The input N-D data.
  • size - Length along which to calculate 1D minimum.
  • axis - The axis of input along which to calculate.
  • mode - Method that will be used to select the padded values. See the CorrelateMode enum for more information.
  • origin - Controls the placement of the filter on the input array’s pixels. A value of 0 centers the filter over the pixel, with positive values shifting the filter to the left, and negative ones to the right.