original_docstring: Apply an arbritrary geometric transform.
  
      The given mapping function is used to find for each point in the 
      output the corresponding coordinates in the input. The value of the 
      input at those 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 output shape can optionally be 
      given. If not given, it is equal to the input shape. The parameter 
      prefilter determines if the input is pre-filtered before 
      interpolation, if False it is assumed that the input is already 
      filtered. The extra_arguments and extra_keywords arguments can be 
      used to provide extra arguments and keywords that are passed to the 
      mapping function at each call.
      
docstring: Apply an arbritrary geometric transform.
  The given mapping function is used to find for each point in the
  output the corresponding coordinates in the input. The value of the
  input at those 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 output shape can optionally be
  given. If not given, it is equal to the input shape. The parameter
  prefilter determines if the input is pre-filtered before
  interpolation, if False it is assumed that the input is already
  filtered. The extra_arguments and extra_keywords arguments can be
  used to provide extra arguments and keywords that are passed to the
  mapping function at each call.
docstring_tokens: Apply an arbritrary geometric transform . The given mapping function is used to find for each point in the output the corresponding coordinates in the input . The value of the input at those 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 output shape can optionally be given . If not given it is equal to the input shape . The parameter prefilter determines if the input is pre - filtered before interpolation if False it is assumed that the input is already filtered . The extra_arguments and extra_keywords arguments can be used to provide extra arguments and keywords that are passed to the mapping function at each call .
code: def geometric_transform(input, mapping, output_shape = None,
                          output_type = None, output = None, order = 3,
                          mode = 'constant', cval = 0.0, prefilter = True, 
                          extra_arguments = (), extra_keywords = {}):
      """Apply an arbritrary geometric transform.
  
      The given mapping function is used to find for each point in the 
      output the corresponding coordinates in the input. The value of the 
      input at those 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 output shape can optionally be 
      given. If not given, it is equal to the input shape. The parameter 
      prefilter determines if the input is pre-filtered before 
      interpolation, if False it is assumed that the input is already 
      filtered. The extra_arguments and extra_keywords arguments can be 
      used to provide extra arguments and keywords that are passed to the 
      mapping function at each call.
      """
      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'
      if output_shape == None:
          output_shape = input.shape
      if input.rank < 1 or len(output_shape) < 1:
          raise RuntimeError, 'input and output rank must be > 0'
      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, mapping, None, None, None,
                 output, order, mode, cval, extra_arguments, extra_keywords)
      return return_value
code_tokens: def geometric_transform ( input , mapping , output_shape = None , output_type = None , output = None , order = 3 , mode = 'constant' , cval = 0.0 , prefilter = True , extra_arguments = ( ) , extra_keywords = { } ) : 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' if output_shape == None : output_shape = input . shape if input . rank < 1 or len ( output_shape ) < 1 : raise RuntimeError , 'input and output rank must be > 0' 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 , mapping , None , None , None , output , order , mode , cval , extra_arguments , extra_keywords ) return return_value
short_docstring: Apply an arbritrary geometric transform.
short_docstring_tokens: Apply an arbritrary geometric transform .
comment: """Apply an arbritrary geometric transform.
  
      The given mapping function is used to find for each point in the 
      output the corresponding coordinates in the input. The value of the 
      input at those 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 output shape can optionally be 
      given. If not given, it is equal to the input shape. The parameter 
      prefilter determines if the input is pre-filtered before 
      interpolation, if False it is assumed that the input is already 
      filtered. The extra_arguments and extra_keywords arguments can be 
      used to provide extra arguments and keywords that are passed to the 
      mapping function at each call.
      """