MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / getWorld2View

Function getWorld2View

utils/graphics_utils.py:32–37  ·  view source on GitHub ↗
(R, t)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected