示例#1
0
 def run(self, ips, imgs, para = None):
     if ips.roi == None:
         ClipBoardManager.img = ips.get_subimg().copy()
         ClipBoardManager.roi = RectangleRoi(0, 0, ips.size[1], ips.size[0])
     else:
         box = ips.roi.get_box()
         ClipBoardManager.img = ips.get_subimg().copy()
         ClipBoardManager.roi = ips.roi.affine(np.eye(2), (-box[0], -box[1]))
示例#2
0
 def run(self, ips, imgs, para=None):
     ips.roi = RectangleRoi(0, 0, ips.size[1], ips.size[0])
示例#3
0
 def run(self, ips, imgs, para=None):
     rect = RectangleRoi(0, 0, ips.size[1], ips.size[0])
     ips.roi = ips.roi.invert(rect)