Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
def
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
54
def
LatLon2Pixel(LatLon):
Callers
2
__init__
Method · 0.85
setInverse
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected