def analysis.ImageJ_utilities.read_ImageJ_roi_file (   file  ) 

Definition at line 17 of file ImageJ_utilities.py.

00017                               :
00018     "Read a measurements file from ImageJ containing  (at least) the bounding rectangle information for a series of ROIs"
00019     keys, column_names, data = read_ImageJ_measurement_file(file)
00020     rois=[]
00021     column_map=[keys[name] for name in ("BX","BY","Width","Height")] 
00022     for i in data[1:]:
00023         x0, y0, width, height= [int(i[c]) for c in column_map] 
00024         rois.append([x0,y0,x0+width,y0+height])
00025     return rois
00026  
 


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