MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / viewmatrix

Function viewmatrix

mapping/eval/eval_recon.py:21–27  ·  view source on GitHub ↗
(z, up, pos)

Source from the content-addressed store, hash-verified

19
20
21def viewmatrix(z, up, pos):
22 vec2 = normalize(z)
23 vec1_avg = up
24 vec0 = normalize(np.cross(vec1_avg, vec2))
25 vec1 = normalize(np.cross(vec2, vec0))
26 m = np.stack([vec0, vec1, vec2, pos], 1)
27 return m
28
29
30def completion_ratio(gt_points, rec_points, dist_th=0.05):

Callers 1

calc_2d_metricFunction · 0.85

Calls 1

normalizeFunction · 0.70

Tested by

no test coverage detected