freealise commited on
Commit
75a13ed
1 Parent(s): dde2794

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = (i/2-1/4) * np.pi*2 / depth.shape[1]
207
- d_lat = (j/2-1/4) * np.pi / depth.shape[0]
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