MCPcopy Create free account
hub / github.com/MetaSLAM/SphereVLAD / do_multi_sph_projection

Method do_multi_sph_projection

utils/pointProcess.py:192–202  ·  view source on GitHub ↗
(self, points)

Source from the content-addressed store, hash-verified

190 return sph_norm
191
192 def do_multi_sph_projection(self, points):
193 depth = np.linalg.norm(points, 2, axis=1)
194 index_r20 = np.where(depth<=20)
195 index_r35 = np.intersect1d(np.where(depth>20), np.where(depth<=35))
196 index_r50 = np.where(depth>35)
197
198 sphere_r20 = self.do_sph_projection(points[index_r20])
199 sphere_r35 = self.do_sph_projection(points[index_r35])
200 sphere_r50 = self.do_sph_projection(points[index_r50])
201
202 return np.stack((sphere_r20,sphere_r35,sphere_r50), axis=0)

Callers

nothing calls this directly

Calls 1

do_sph_projectionMethod · 0.95

Tested by

no test coverage detected