(R, t)
| 30 | return (points_out[..., :3] / denom).squeeze(dim=0) |
| 31 | |
| 32 | def getWorld2View(R, t): |
| 33 | Rt = np.zeros((4, 4)) |
| 34 | Rt[:3, :3] = R.transpose() |
| 35 | Rt[:3, 3] = t |
| 36 | Rt[3, 3] = 1.0 |
| 37 | return np.float32(Rt) |
| 38 | |
| 39 | def getWorld2View2(R, t, translate=np.array([.0, .0, .0]), scale=1.0): |
| 40 | Rt = np.zeros((4, 4)) |
nothing calls this directly
no outgoing calls
no test coverage detected