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

Function Sphere2LatLon

utils/equirectRotate/utils.py:47–51  ·  view source on GitHub ↗
(xyz)

Source from the content-addressed store, hash-verified

45
46
47def Sphere2LatLon(xyz):
48 Lat = np.pi / 2 - np.arccos(xyz[:, :, 2])
49 Lon = np.arctan2(xyz[:, :, 1], xyz[:, :, 0])
50
51 return np.dstack((Lat, Lon))
52
53
54def LatLon2Pixel(LatLon):

Callers 2

__init__Method · 0.85
setInverseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected