def spline_filter1d(input, order=3, axis=(-1), output=numpy.float64):
 if ((order < 0) or (order > 5)):
  raise RuntimeError('spline order not supported')
 input = numpy.asarray(input)
 if numpy.iscomplexobj(input):
  raise TypeError('Complex type not supported')
 (output, return_value) = _ni_support._get_output(output, input)
 if (order in [0, 1]):
  output[...] = numpy.array(input)
 else:
  axis = _ni_support._check_axis(axis, input.ndim)
  _nd_image.spline_filter1d(input, order, axis, output)
 return return_value

def spline_filter1d ( input , order = 3 , axis = ( - 1 ) , output = numpy . float64 ) : if ( ( order < 0 ) or ( order > 5 ) ) : raise RuntimeError ( 'spline order not supported' ) input = numpy . asarray ( input ) if numpy . iscomplexobj ( input ) : raise TypeError ( 'Complex type not supported' ) ( output , return_value ) = _ni_support . _get_output ( output , input ) if ( order in [ 0 , 1 ] ) : output [ ... ] = numpy . array ( input ) else : axis = _ni_support . _check_axis ( axis , input . ndim ) _nd_image . spline_filter1d ( input , order , axis , output ) return return_value
calculates a one-dimensional spline filter along the given axis .