def cam2world_centered(data_3d_camframe):
     data_3d_worldframe = cameras.camera_to_world_frame(
         data_3d_camframe.reshape((-1, 3)), R, T)
     data_3d_worldframe = data_3d_worldframe.reshape(
         (-1, N_JOINTS_H36M * 3))
     # subtract root translation
     return data_3d_worldframe - np.tile(
         data_3d_worldframe[:, :3], (1, N_JOINTS_H36M))
示例#2
0
 def cam2world_centered(data_3d_camframe):
   data_3d_worldframe = cameras.camera_to_world_frame(data_3d_camframe.reshape((-1, 3)), R, T)
   data_3d_worldframe = data_3d_worldframe.reshape((-1, N_JOINTS_H36M*3))
   # subtract root translation
   return data_3d_worldframe - np.tile( data_3d_worldframe[:,:3], (1,N_JOINTS_H36M) )