File size: 698 Bytes
634b6e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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])