parameters: (out, iprec)
return_statement: return
docstring: Just the reverse operation of read_ip_record.
      Inputs:
      - out: file handle to the output binary file (in 'wb' mode)
      - iprec: 1D array containing one IP record
docstring_summary: Just the reverse operation of read_ip_record.
      Inputs:
      - out: file handle to the output binary file (in 'wb' mode)
      - iprec: 1D array containing one IP record
docstring_tokens: Just the reverse operation of read_ip_record . Inputs : - out : file handle to the output binary file ( in wb mode ) - iprec : 1D array containing one IP record
function: def write_ip_record(out, iprec):
      """
      Just the reverse operation of read_ip_record.
      Inputs:
      - out: file handle to the output binary file (in 'wb' mode)
      - iprec: 1D array containing one IP record
      """
      out.write(struct.pack('f',iprec[0]))  # x, y
      out.write(struct.pack('f',iprec[1]))  
      out.write(struct.pack('i',iprec[2]))  # xi, yi
      out.write(struct.pack('i',iprec[3]))
      out.write(struct.pack('f',iprec[4]))  # orientation, scale, interest
      out.write(struct.pack('f',iprec[5]))
      out.write(struct.pack('f',iprec[6]))
      out.write(struct.pack('?',iprec[7]))  # polarity  # use fmt ? instead?
      out.write(struct.pack('I',iprec[8]))  # octave, scale_lvl
      out.write(struct.pack('I',iprec[9]))
  
      ndesc = iprec[10]
  
      # If the descriptors were not read, their true number
      # is less than specified.
      ndesc = len(iprec) - 11
      
      out.write(struct.pack('Q', ndesc))  # ndesc
      
      for k in range(ndesc):
          out.write(struct.pack('f',iprec[11+k]))  # desc
      return
function_tokens: def write_ip_record ( out , iprec ) : out . write ( struct . pack ( 'f' , iprec [ 0 ] ) ) # x, y out . write ( struct . pack ( 'f' , iprec [ 1 ] ) ) out . write ( struct . pack ( 'i' , iprec [ 2 ] ) ) # xi, yi out . write ( struct . pack ( 'i' , iprec [ 3 ] ) ) out . write ( struct . pack ( 'f' , iprec [ 4 ] ) ) # orientation, scale, interest out . write ( struct . pack ( 'f' , iprec [ 5 ] ) ) out . write ( struct . pack ( 'f' , iprec [ 6 ] ) ) out . write ( struct . pack ( '?' , iprec [ 7 ] ) ) # polarity  # use fmt ? instead? out . write ( struct . pack ( 'I' , iprec [ 8 ] ) ) # octave, scale_lvl out . write ( struct . pack ( 'I' , iprec [ 9 ] ) ) ndesc = iprec [ 10 ] # If the descriptors were not read, their true number # is less than specified. ndesc = len ( iprec ) - 11 out . write ( struct . pack ( 'Q' , ndesc ) ) # ndesc for k in range ( ndesc ) : out . write ( struct . pack ( 'f' , iprec [ 11 + k ] ) ) # desc return