mtwohey2 commited on
Commit
a2c8d72
·
verified ·
1 Parent(s): 2106d07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- if depth_norm > 255:
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: