MCPcopy Index your code
hub / github.com/LeapLabTHU/ActiveNeRF / normalize

Function normalize

load_llff.py:125–126  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

123
124
125def normalize(x):
126 return x / np.linalg.norm(x)
127
128def viewmatrix(z, up, pos):
129 vec2 = normalize(z)

Callers 5

viewmatrixFunction · 0.85
poses_avgFunction · 0.85
render_path_spiralFunction · 0.85
spherify_posesFunction · 0.85
load_llff_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected