MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / normalize

Function normalize

dataset_loaders/seven_scenes.py:147–148  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

145 return img_depth
146
147def normalize(x):
148 return x / np.linalg.norm(x)
149
150def viewmatrix(z, up, pos):
151 vec2 = normalize(z)

Callers 2

viewmatrixFunction · 0.70
normalize_recenter_poseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected