(gt_points, rec_points, dist_th=0.05)
| 43 | |
| 44 | |
| 45 | def completion_ratio(gt_points, rec_points, dist_th=0.05): |
| 46 | gen_points_kd_tree = KDTree(rec_points) |
| 47 | distances, _ = gen_points_kd_tree.query(gt_points) |
| 48 | comp_ratio = np.mean((distances < dist_th).astype(np.float32)) |
| 49 | return comp_ratio |
| 50 | |
| 51 | |
| 52 | def accuracy(gt_points, rec_points, gt_normals=None, rec_normals=None): |
nothing calls this directly
no outgoing calls
no test coverage detected