(self, output_path, frame_skip=1)
| 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): |
no test coverage detected