MCPcopy Create free account
hub / github.com/LeapLabTHU/ActiveNeRF / min_line_dist

Function min_line_dist

load_llff.py:191–195  ·  view source on GitHub ↗
(rays_o, rays_d)

Source from the content-addressed store, hash-verified

189 rays_o = poses[:,:3,3:4]
190
191 def min_line_dist(rays_o, rays_d):
192 A_i = np.eye(3) - rays_d * np.transpose(rays_d, [0,2,1])
193 b_i = -A_i @ rays_o
194 pt_mindist = np.squeeze(-np.linalg.inv((np.transpose(A_i, [0,2,1]) @ A_i).mean(0)) @ (b_i).mean(0))
195 return pt_mindist
196
197 pt_mindist = min_line_dist(rays_o, rays_d)
198

Callers 1

spherify_posesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected