def run(self, ips, imgs, para=None): ds, sigma = para['scale'], para['sigma'] vts, fs, ns, cs = myvi.build_surf2d(ips.img, ds=ds, sigma=para['sigma'], k=para['h']) self.frame.viewer.add_surf_asyn(para['name'], vts, fs, ns, cs) self.frame = None
def run(self, tps, data, snap, para=None): vts, fs, ns, cs = myvi.build_surf2d(tps.data.values, ds=1, sigma=0, k=para['h']) self.frame.viewer.add_surf_asyn(para['name'], vts, fs, ns, cs) self.frame.Raise() self.frame = None