Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,8 +50,7 @@ def stitch_rgbd_videos(
|
|
| 50 |
# Normalize the depth frame to the range [0, 255].
|
| 51 |
depth_norm = ((depth_frame - d_min) / (d_max - d_min) * 255).astype(np.uint8)
|
| 52 |
|
| 53 |
-
|
| 54 |
-
depth_norm = 255
|
| 55 |
|
| 56 |
# Generate depth visualization:
|
| 57 |
if grayscale:
|
|
|
|
| 50 |
# Normalize the depth frame to the range [0, 255].
|
| 51 |
depth_norm = ((depth_frame - d_min) / (d_max - d_min) * 255).astype(np.uint8)
|
| 52 |
|
| 53 |
+
depth_norm = np.clip(depth_norm, 0, 255)
|
|
|
|
| 54 |
|
| 55 |
# Generate depth visualization:
|
| 56 |
if grayscale:
|