MCPcopy Create free account
hub / github.com/NVlabs/InstantSplat / normalize

Function normalize

utils/camera_utils.py:193–195  ·  view source on GitHub ↗

Normalization helper function.

(x)

Source from the content-addressed store, hash-verified

191 return m
192
193def normalize(x):
194 """Normalization helper function."""
195 return x / np.linalg.norm(x)
196
197def pad_poses(p):
198 """Pad [..., 3, 4] pose matrices with a homogeneous bottom row [0,0,0,1]."""

Callers 1

viewmatrixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected