MCPcopy Create free account
hub / github.com/SceneFun3D/scenefun3d / get_transform

Method get_transform

utils/data_parser.py:512–525  ·  view source on GitHub ↗

Load the transformation matrix from a .npy file. This transformation matrix converts coordinates from the Faro laser scan coordinate system to the ARKit coodinate system. Args: visit_id (str): The identifier of the scene. video_id (str): The identifier of th

(self, visit_id, video_id)

Source from the content-addressed store, hash-verified

510 return desired_pose
511
512 def get_transform(self, visit_id, video_id):
513 """
514 Load the transformation matrix from a .npy file. This transformation matrix converts coordinates from the Faro laser scan coordinate system to the ARKit coodinate system.
515
516 Args:
517 visit_id (str): The identifier of the scene.
518 video_id (str): The identifier of the video sequence.
519
520 Returns:
521 (numpy.ndarray): The estimated transformation matrix loaded from the file.
522 """
523 transform_path = self.get_data_asset_path(data_asset_identifier="transform", visit_id=visit_id, video_id=video_id)
524 transform = np.load(transform_path)
525 return transform
526
527 def read_rgb_frame(self, rgb_frame_path, normalize=False):
528 """

Callers 1

mainFunction · 0.95

Calls 1

get_data_asset_pathMethod · 0.95

Tested by

no test coverage detected