import json import numpy as np import open3d as o3d with open("./gt_noisyfiltered/eyeglasses/noisy_filtered_100_1.json", 'r') as f: loaded_data = json.load(f) noisy_data = loaded_data['noisy_filtered_100_1'] T_matrix = noisy_data['matrix_world'] ##Translated gt_path = "./gt_filtered/glasses/gt_filtered.ply" noisy_path = "./processed/eyeglasses/preprocessed_noisy_filtered/noisy_filtered_100_1.ply" gt_pcd = o3d.io.read_point_cloud(gt_path) gt_pcd.paint_uniform_color([0,0,1]) noisy_pcd = o3d.io.read_point_cloud(noisy_path) noisy_pcd.paint_uniform_color([1,0,0]) ## move and check gt and noisy noisy_pcd.transform(T_matrix) o3d.visualization.draw_geometries([gt_pcd,noisy_pcd])