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

Method export_intrinsics

tools/SensorData.py:118–125  ·  view source on GitHub ↗
(self, output_path)

Source from the content-addressed store, hash-verified

116
117
118 def export_intrinsics(self, output_path):
119 if not os.path.exists(output_path):
120 os.makedirs(output_path)
121 print 'exporting camera intrinsics to', output_path
122 self.save_mat_to_file(self.intrinsic_color, os.path.join(output_path, 'intrinsic_color.txt'))
123 self.save_mat_to_file(self.extrinsic_color, os.path.join(output_path, 'extrinsic_color.txt'))
124 self.save_mat_to_file(self.intrinsic_depth, os.path.join(output_path, 'intrinsic_depth.txt'))
125 self.save_mat_to_file(self.extrinsic_depth, os.path.join(output_path, 'extrinsic_depth.txt'))

Callers 1

mainFunction · 0.95

Calls 1

save_mat_to_fileMethod · 0.95

Tested by

no test coverage detected