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]))
def run(self, ips, imgs, para=None): ips.roi = RectangleRoi(0, 0, ips.size[1], ips.size[0])
def run(self, ips, imgs, para=None): rect = RectangleRoi(0, 0, ips.size[1], ips.size[0]) ips.roi = ips.roi.invert(rect)