Upload app.py
Browse files
app.py
CHANGED
|
@@ -116,10 +116,11 @@ def put_mask(image,mask,color_rgb=None,border_mask=False,color_temp='jet',num_c=
|
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
-
|
| 120 |
-
|
| 121 |
|
| 122 |
return np.array(result)
|
|
|
|
| 123 |
|
| 124 |
|
| 125 |
def visualize_geometry_prior(RGB_path, Depth_path, index_list=[[584]], cmap_list = ['jet_r'],x=0,y=0):
|
|
|
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
+
heatmap = cv2.applyColorMap((mask * 255).astype(np.uint8), cv2.COLORMAP_JET)
|
| 120 |
+
result = cv2.addWeighted(image, 0.6, heatmap, 0.4, 0)
|
| 121 |
|
| 122 |
return np.array(result)
|
| 123 |
+
|
| 124 |
|
| 125 |
|
| 126 |
def visualize_geometry_prior(RGB_path, Depth_path, index_list=[[584]], cmap_list = ['jet_r'],x=0,y=0):
|