MCPcopy Create free account
hub / github.com/apple/ml-aspanformer / export_poses

Method export_poses

tools/SensorData.py:110–115  ·  view source on GitHub ↗
(self, output_path, frame_skip=1)

Source from the content-addressed store, hash-verified

108
109
110 def export_poses(self, output_path, frame_skip=1):
111 if not os.path.exists(output_path):
112 os.makedirs(output_path)
113 print 'exporting', len(self.frames)//frame_skip, 'camera poses to', output_path
114 for f in range(0, len(self.frames), frame_skip):
115 self.save_mat_to_file(self.frames[f].camera_to_world, os.path.join(output_path, str(f) + '.txt'))
116
117
118 def export_intrinsics(self, output_path):

Callers 1

mainFunction · 0.95

Calls 1

save_mat_to_fileMethod · 0.95

Tested by

no test coverage detected