Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -203,8 +203,8 @@ def pano_depth_to_world_points(depth, scale):
|
|
203 |
for j in range(0, 2):
|
204 |
#rnd_lon = (np.random.rand(depth.shape[0]*depth.shape[1]) - 0.5) / 8
|
205 |
#rnd_lat = (np.random.rand(depth.shape[0]*depth.shape[1]) - 0.5) / 8
|
206 |
-
d_lon =
|
207 |
-
d_lat =
|
208 |
lon = lon.flatten() + d_lon
|
209 |
lat = lat.flatten() + d_lat
|
210 |
|
|
|
203 |
for j in range(0, 2):
|
204 |
#rnd_lon = (np.random.rand(depth.shape[0]*depth.shape[1]) - 0.5) / 8
|
205 |
#rnd_lat = (np.random.rand(depth.shape[0]*depth.shape[1]) - 0.5) / 8
|
206 |
+
d_lon = i/4 * np.pi*2 / depth.shape[1]
|
207 |
+
d_lat = j/4 * np.pi / depth.shape[0]
|
208 |
lon = lon.flatten() + d_lon
|
209 |
lat = lat.flatten() + d_lat
|
210 |
|