freealise commited on
Commit
7139a06
1 Parent(s): 7210b32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -191,9 +191,8 @@ def pano_depth_to_world_points(depth):
191
  # Convert depth to radius
192
  radius = 255 - depth.flatten()
193
 
194
- lon = np.linspace(0, np.pi*2, depth.shape[0])
195
- lat = np.linspace(0, np.pi, depth.shape[1])
196
-
197
  lon, lat = np.meshgrid(lon, lat)
198
  lon = lon.flatten()
199
  lat = lat.flatten()
 
191
  # Convert depth to radius
192
  radius = 255 - depth.flatten()
193
 
194
+ lon = np.linspace(0, np.pi*2, depth.shape[1])
195
+ lat = np.linspace(0, np.pi, depth.shape[0])
 
196
  lon, lat = np.meshgrid(lon, lat)
197
  lon = lon.flatten()
198
  lat = lat.flatten()