コード例 #1
0
 def compute_farthest_surface_point_3d():
     for cls in cfg.homemade_cls_names:
         pts = np.loadtxt(os.path.join(cfg.HOMEMADE, cls,
                                       'dense_pts.txt'))[:, :3]
         spts = farthest_point_sampling(pts, 8, True)
         write_points(
             os.path.join(cfg.HOMEMADE, cls, 'farthest.txt'.format(cls)),
             spts)
コード例 #2
0
 def compute_farthest_surface_point_3d_num(num):
     for cls in cfg.linemod_cls_names:
         pts = np.loadtxt(os.path.join(cfg.LINEMOD, cls,
                                       'dense_pts.txt'))[:, :3]
         spts = farthest_point_sampling(pts, num, True)
         write_points(
             os.path.join(cfg.LINEMOD, cls, 'farthest{}.txt'.format(num)),
             spts)
コード例 #3
0
 def compute_farthest_surface_point_3d():
     for cls in cfg.linemod_cls_names:
         pts = np.loadtxt(os.path.join(cfg.LINEMOD, cls,
                                       'dense_pts.txt'))[:, :3]
         # spts=farthest_point_sampling(pts,8,True)
         spts = pts[:8, :]
         write_points(
             os.path.join(cfg.LINEMOD, cls, 'farthest.txt'.format(cls)),
             spts)
コード例 #4
0
 def compute_farthest_surface_point_3d():
     for cls in cfg.linemod_cls_names:
         #only px py pz 3-dims  , no need nx ny nz rgb
         pts = np.loadtxt(os.path.join(cfg.LINEMOD, cls,
                                       'dense_pts.txt'))[:, :3]
         spts = farthest_point_sampling(pts, 8, True)
         write_points(
             os.path.join(cfg.LINEMOD, cls, 'farthest.txt'.format(cls)),
             spts)