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

Method sample_rays

mapping/src/frame.py:89–91  ·  view source on GitHub ↗
(self, N_rays)

Source from the content-addressed store, hash-verified

87
88 @torch.no_grad()
89 def sample_rays(self, N_rays):
90 self.sample_mask = sample_rays(
91 torch.ones_like(self.depth)[None, ...], N_rays)[0, ...]

Callers

nothing calls this directly

Calls 1

sample_raysFunction · 0.85

Tested by

no test coverage detected