Пример #1
0
 def run(self, ips, imgs, para = None):
     ips.roi = mark2shp(self.app.manager('roi').get(name=para['name']))
Пример #2
0
 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))))
Пример #3
0
 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))))
Пример #4
0
 def run(self, ips, imgs, para = None):
     with open(para['path']) as f:
         ips.roi = ROI(mark2shp(json.loads(f.read())))