### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Multi-dimensional image processing (`scipy.ndimage`) »

# scipy.ndimage.filters.maximum_filter1d

`scipy.ndimage.filters.``maximum_filter1d`(input, size, axis=-1, output=None, mode='reflect', cval=0.0, origin=0)

  Calculate a one-dimensional maximum filter along the given axis.

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

  Parameters : | input : array-like input array to filter size : int length along which to calculate 1D maximum axis : integer, optional axis of `input` along which to calculate. Default is -1 output : array, optional The `output` parameter passes an array in which to store the filter output. mode : {‘reflect’,’constant’,’nearest’,’mirror’, ‘wrap’}, optional The `mode` parameter determines how the array borders are handled, where `cval` is the value when mode is equal to ‘constant’. Default is ‘reflect’ cval : scalar, optional Value to fill past edges of input if `mode` is ‘constant’. Default is 0.0 origin : scalar, optional The ``origin`` parameter controls the placement of the filter. Default 0 :

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Multi-dimensional image processing (`scipy.ndimage`) »