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
|