(points, transf_matrix)
| 20 | normals : np.array |
| 21 | |
| 22 | def geom_transform_points(points, transf_matrix): |
| 23 | P, _ = points.shape |
| 24 | ones = torch.ones(P, 1, dtype=points.dtype, device=points.device) |
| 25 | points_hom = torch.cat([points, ones], dim=1) |
| 26 | points_out = torch.matmul(points_hom, transf_matrix.unsqueeze(0)) |
| 27 | |
| 28 | denom = points_out[..., 3:] + 0.0000001 |
| 29 | return (points_out[..., :3] / denom).squeeze(dim=0) |
| 30 | |
| 31 | def getWorld2View(R, t): |
| 32 | Rt = np.zeros((4, 4)) |
nothing calls this directly
no outgoing calls
no test coverage detected