Beispiel #1
0
 def load(self):
     Plugin.para = {
         'color': RoiManager.get_color(),
         'lw': RoiManager.get_lw()
     }
     Plugin.view = [('color', 'color', 'roi', 'color'),
                    (int, 'lw', (1, 5), 0, 'line width', 'pix')]
     return True
Beispiel #2
0
 def UpdateData(self):
     names = RoiManager.get_titles()
     types = [RoiManager.get(i).dtype for i in names]
     self.lst_rois.SetValue(list(zip(names, types)))
Beispiel #3
0
 def run(self, ips, imgs, para=None):
     ips.roi = ips.roi.diff(RoiManager.get(para['name']))
Beispiel #4
0
 def run(self, para=None):
     RoiManager.set_color(para['color'])
     RoiManager.set_lw(para['lw'])
Beispiel #5
0
 def run(self, ips, imgs, para=None):
     RoiManager.add(para['name'], ips.roi)
Beispiel #6
0
 def on_end_edit(self, event):
     end = event.GetText()
     if end == self.begin or end == '': return
     RoiManager.add(end, RoiManager.get(self.begin))
     RoiManager.remove(self.begin)
     self.UpdateData()
Beispiel #7
0
 def run(self, ips, imgs, para=None):
     RoiManager.remove(para['name'])
Beispiel #8
0
 def run(self, ips, imgs, para=None):
     ips.roi = ips.roi.intersect(RoiManager.get(para['name']))