MCPcopy Create free account
hub / github.com/DNA-Rendering/DNA-Rendering / getWorld2View

Function getWorld2View

scripts/3DGS/utils/graphics_utils.py:31–36  ·  view source on GitHub ↗
(R, t)

Source from the content-addressed store, hash-verified

29 return (points_out[..., :3] / denom).squeeze(dim=0)
30
31def 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
38def getWorld2View2(R, t, translate=np.array([.0, .0, .0]), scale=1.0):
39 Rt = np.zeros((4, 4))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected