@docfiller
def uniform_filter1d(input, size, axis=(-1), output=None, mode='reflect', cval=0.0, origin=0):
 input = numpy.asarray(input)
 if numpy.iscomplexobj(input):
  raise TypeError('Complex type not supported')
 axis = _ni_support._check_axis(axis, input.ndim)
 if (size < 1):
  raise RuntimeError('incorrect filter size')
 (output, return_value) = _ni_support._get_output(output, input)
 if ((((size // 2) + origin) < 0) or (((size // 2) + origin) >= size)):
  raise ValueError('invalid origin')
 mode = _ni_support._extend_mode_to_code(mode)
 _nd_image.uniform_filter1d(input, size, axis, output, mode, cval, origin)
 return return_value

@ docfiller def uniform_filter1d ( input , size , axis = ( - 1 ) , output = None , mode = 'reflect' , cval = 0.0 , origin = 0 ) : input = numpy . asarray ( input ) if numpy . iscomplexobj ( input ) : raise TypeError ( 'Complex type not supported' ) axis = _ni_support . _check_axis ( axis , input . ndim ) if ( size < 1 ) : raise RuntimeError ( 'incorrect filter size' ) ( output , return_value ) = _ni_support . _get_output ( output , input ) if ( ( ( ( size // 2 ) + origin ) < 0 ) or ( ( ( size // 2 ) + origin ) >= size ) ) : raise ValueError ( 'invalid origin' ) mode = _ni_support . _extend_mode_to_code ( mode ) _nd_image . uniform_filter1d ( input , size , axis , output , mode , cval , origin ) return return_value
calculate a one-dimensional uniform filter along the given axis .