def analysis.ImageJ_utilities.read_ImageJ_measurement_file (   file,
  maxlen = 1000000 
)

Definition at line 4 of file ImageJ_utilities.py.

00004                                                       :
00005     "Read a measurements file from ImageJ, and return a dictionary mapping columns names to numbers, a list of column names, and a table of the data provided"
00006     f=open(file,"r")
00007     strings=f.read(maxlen).split("\n")
00008     f.close()
00009     columns=[ [i.strip() for i in line.split("\t")] for line in strings if line]
00010     header=columns[0]
00011     keys={}
00012     #extract column names
00013     for i in range(1,len(header)):
00014         keys[header[i]]=i
00015     return keys, columns[0][1:], columns[1:]
00016 
def read_ImageJ_roi_file(file):


Generated on Wed Nov 21 10:18:33 2007 for analysis by  doxygen 1.5.4