def run(self, ips, imgs, para = None): ips.roi = mark2shp(self.app.manager('roi').get(name=para['name']))
def run(self, ips, imgs, para = None): obj = mark2shp(self.app.manager('roi').get(name=para['name'])).to_geom() roi = geom_flatten(ips.roi.to_geom()) ips.roi = ROI(geom2shp(geom_flatten(roi.intersection(obj))))
def run(self, ips, imgs, para = None): obj = mark2shp(self.app.manager('roi').get(name=para['name'])).to_geom() roi = geom_flatten(ips.roi.to_geom()) ips.roi = ROI(geom2shp(geom_flatten(roi.symmetric_difference(obj))))
def run(self, ips, imgs, para = None): with open(para['path']) as f: ips.roi = ROI(mark2shp(json.loads(f.read())))