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