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

Method __init__

dataloader/data_augmentation.py:97–100  ·  view source on GitHub ↗
(self, p, img_size)

Source from the content-addressed store, hash-verified

95class SphRandomRotate:
96 '''Random rotate spherical projection of point cloud'''
97 def __init__(self, p, img_size):
98 assert 0 < p <= 1, 'probability must be in (0, 1] range)!'
99 self.p = p
100 self.grid = get_projection_grid(b=(int)(img_size[0]/2.0))
101
102 def __call__(self, sph_img):
103 #* conver from PIL.Image into numpy.array

Callers

nothing calls this directly

Calls 1

get_projection_gridFunction · 0.90

Tested by

no test coverage detected