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

Function LatLon2Sphere

utils/equirectRotate/utils.py:37–44  ·  view source on GitHub ↗
(LatLon)

Source from the content-addressed store, hash-verified

35
36
37def LatLon2Sphere(LatLon):
38 Lat = LatLon[:, :, 0]
39 Lon = LatLon[:, :, 1]
40 x = np.cos(Lat) * np.cos(Lon)
41 y = np.cos(Lat) * np.sin(Lon)
42 z = np.sin(Lat)
43
44 return np.dstack((x, y, z))
45
46
47def Sphere2LatLon(xyz):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected