Add application file
Browse files
app.py
CHANGED
|
@@ -77,8 +77,8 @@ def plot_depth(nor_hist):
|
|
| 77 |
img_tof = to_uint8_image(tof)
|
| 78 |
img_filter = to_uint8_image(tof_filter) * mask
|
| 79 |
|
| 80 |
-
colored_tof = cv2.applyColorMap(img_tof, cv2.
|
| 81 |
-
colored_tof_filter = cv2.applyColorMap(img_filter, cv2.
|
| 82 |
|
| 83 |
return [colored_tof, colored_tof_filter]
|
| 84 |
|
|
|
|
| 77 |
img_tof = to_uint8_image(tof)
|
| 78 |
img_filter = to_uint8_image(tof_filter) * mask
|
| 79 |
|
| 80 |
+
colored_tof = cv2.applyColorMap(img_tof, cv2.COLORMAP_RAINBOW)[:, :, ::-1]
|
| 81 |
+
colored_tof_filter = cv2.applyColorMap(img_filter, cv2.COLORMAP_RAINBOW)[:, :, ::-1]
|
| 82 |
|
| 83 |
return [colored_tof, colored_tof_filter]
|
| 84 |
|