MCPcopy Create free account
hub / github.com/NVlabs/InstantSplat / average_distance

Function average_distance

utils/pose_utils.py:490–492  ·  view source on GitHub ↗
(points)

Source from the content-addressed store, hash-verified

488 """Insert extra poses at the start and end of the path."""
489
490 def average_distance(points):
491 distances = np.linalg.norm(points[1:] - points[0:-1], axis=-1)
492 return np.mean(distances)
493
494 def shift(pose, dz):
495 result = np.copy(pose)

Callers 1

insert_buffer_posesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected