Normalize the depth map to a range between 0 and 1.
(depth_map)
| 369 | return overlapping_mask |
| 370 | |
| 371 | def normalize_depth(depth_map): |
| 372 | """Normalize the depth map to a range between 0 and 1.""" |
| 373 | return (depth_map - np.min(depth_map)) / (np.max(depth_map) - np.min(depth_map)) |
| 374 | |
| 375 | def compute_co_vis_masks(sorted_conf_indices, depthmaps, pointmaps, camera_intrinsics, extrinsics_w2c, image_sizes, depth_threshold=0.1): |
| 376 |
no outgoing calls
no test coverage detected