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

Function LatLon2Pixel

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

Source from the content-addressed store, hash-verified

52
53
54def LatLon2Pixel(LatLon):
55 h, w, _ = LatLon.shape
56 Lat = LatLon[:, :, 0]
57 Lon = LatLon[:, :, 1]
58 i = (h * (0.5 - Lat / np.pi)) % h
59 j = (w * (0.5 + Lon / (2 * np.pi))) % w
60
61 return np.dstack((i, j)).astype('int')

Callers 2

__init__Method · 0.85
setInverseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected