Spaces:
Starting
Starting
Update app.py
Browse files
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[
|
195 |
-
lat = np.linspace(0, np.pi, depth.shape[
|
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()
|