maximum_filter

Function maximum_filter 

Source
pub fn maximum_filter<S, A, D>(
    data: &ArrayBase<S, D>,
    size: usize,
    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 multidimensional maximum filter.

  • data - The input N-D data.
  • size - Length along which to calculate 1D maximum.
  • 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.