original_docstring: Zoom an array.
  
      The array is zoomed using 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: Zoom an array.
  The array is zoomed using 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: Zoom an array . The array is zoomed using 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 zoom(input, zoom, output_type = None, output = None, order = 3,
           mode = 'constant', cval = 0.0, prefilter = True):
      """Zoom an array.
  
      The array is zoomed using 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'
      if input.rank < 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
      zoom = _ni_support._normalize_sequence(zoom, input.rank)
      output_shape = [int(ii * jj) for ii, jj in zip(input.shape, zoom)]
      zoom = [1.0 / ii for ii in zoom]
      output, return_value = _ni_support._get_output(output, input,
                                          output_type, shape = output_shape)
      zoom = numarray.asarray(zoom, type = numarray.Float64)
      if not zoom.iscontiguous():
          zoom = shift.copy()
      _nd_image.zoom_shift(filtered, zoom, None, output, order, mode, cval)
      return return_value
code_tokens: def zoom ( input , zoom , 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' if input . rank < 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 zoom = _ni_support . _normalize_sequence ( zoom , input . rank ) output_shape = [ int ( ii * jj ) for ii , jj in zip ( input . shape , zoom ) ] zoom = [ 1.0 / ii for ii in zoom ] output , return_value = _ni_support . _get_output ( output , input , output_type , shape = output_shape ) zoom = numarray . asarray ( zoom , type = numarray . Float64 ) if not zoom . iscontiguous ( ) : zoom = shift . copy ( ) _nd_image . zoom_shift ( filtered , zoom , None , output , order , mode , cval ) return return_value
short_docstring: Zoom an array.
short_docstring_tokens: Zoom an array .
comment: """Zoom an array.
  
      The array is zoomed using 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.
      """