original_docstring: Apply an arbritrary coordinate transformation.
  
      The array of coordinates is used to find for each point in the output 
      the corresponding coordinates in the input. The value of the input at 
      that coordinates is determined by spline interpolation of the 
      requested order. Points outside the boundaries of the input are filled 
      according to the given mode. The parameter prefilter determines if the 
      input is pre-filtered before interpolation, if False it is assumed 
      that the input is already filtered.
      
docstring: Apply an arbritrary coordinate transformation.
  The array of coordinates is used to find for each point in the output
  the corresponding coordinates in the input. The value of the input at
  that coordinates is determined by spline interpolation of the
  requested order. Points outside the boundaries of the input are filled
  according to the given mode. The parameter prefilter determines if the
  input is pre-filtered before interpolation, if False it is assumed
  that the input is already filtered.
docstring_tokens: Apply an arbritrary coordinate transformation . The array of coordinates is used to find for each point in the output the corresponding coordinates in the input . The value of the input at that coordinates is determined by spline interpolation of the requested order . Points outside the boundaries of the input are filled according to the given mode . The parameter prefilter determines if the input is pre - filtered before interpolation if False it is assumed that the input is already filtered .
code: def map_coordinates(input, coordinates, output_type = None, output = None,
                  order = 3, mode = 'constant', cval = 0.0, prefilter = True):
      """Apply an arbritrary coordinate transformation.
  
      The array of coordinates is used to find for each point in the output 
      the corresponding coordinates in the input. The value of the input at 
      that coordinates is determined by spline interpolation of the 
      requested order. Points outside the boundaries of the input are filled 
      according to the given mode. The parameter prefilter determines if the 
      input is pre-filtered before interpolation, if False it is assumed 
      that the input is already filtered.
      """
      if order < 0 or order > 5:
          raise RuntimeError, 'spline order not supported'
      input = numarray.asarray(input)
      if isinstance(input.type(), numarray.ComplexType):
          raise TypeError, 'Complex type not supported'
      coordinates = numarray.asarray(coordinates)
      if isinstance(coordinates.type(), numarray.ComplexType):
          raise TypeError, 'Complex type not supported'
      output_shape = coordinates.shape[1:]
      if input.rank < 1 or len(output_shape) < 1:
          raise RuntimeError, 'input and output rank must be > 0'
      if coordinates.shape[0] != input.rank:
          raise RuntimeError, 'invalid shape for coordinate array'
      mode = _ni_support._extend_mode_to_code(mode)
      if prefilter and order > 1:
          filtered = spline_filter(input, order, output = numarray.Float64)
      else:
          filtered = input
      output, return_value = _ni_support._get_output(output, input,
                                          output_type, shape = output_shape)
      _nd_image.geometric_transform(filtered, None, coordinates, None, None,
                 output, order, mode, cval, None, None)
      return return_value
code_tokens: def map_coordinates ( input , coordinates , output_type = None , output = None , order = 3 , mode = 'constant' , cval = 0.0 , prefilter = True ) : if order < 0 or order > 5 : raise RuntimeError , 'spline order not supported' input = numarray . asarray ( input ) if isinstance ( input . type ( ) , numarray . ComplexType ) : raise TypeError , 'Complex type not supported' coordinates = numarray . asarray ( coordinates ) if isinstance ( coordinates . type ( ) , numarray . ComplexType ) : raise TypeError , 'Complex type not supported' output_shape = coordinates . shape [ 1 : ] if input . rank < 1 or len ( output_shape ) < 1 : raise RuntimeError , 'input and output rank must be > 0' if coordinates . shape [ 0 ] != input . rank : raise RuntimeError , 'invalid shape for coordinate array' mode = _ni_support . _extend_mode_to_code ( mode ) if prefilter and order > 1 : filtered = spline_filter ( input , order , output = numarray . Float64 ) else : filtered = input output , return_value = _ni_support . _get_output ( output , input , output_type , shape = output_shape ) _nd_image . geometric_transform ( filtered , None , coordinates , None , None , output , order , mode , cval , None , None ) return return_value
short_docstring: Apply an arbritrary coordinate transformation.
short_docstring_tokens: Apply an arbritrary coordinate transformation .
comment: """Apply an arbritrary coordinate transformation.
  
      The array of coordinates is used to find for each point in the output 
      the corresponding coordinates in the input. The value of the input at 
      that coordinates is determined by spline interpolation of the 
      requested order. Points outside the boundaries of the input are filled 
      according to the given mode. The parameter prefilter determines if the 
      input is pre-filtered before interpolation, if False it is assumed 
      that the input is already filtered.
      """