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

Function normalize

dataset_loaders/cambridge_scenes.py:67–68  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

65 return img_depth
66
67def normalize(x):
68 return x / np.linalg.norm(x)
69
70def viewmatrix(z, up, pos):
71 vec2 = normalize(z)

Callers 2

viewmatrixFunction · 0.70
normalize_recenter_poseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected