MCPcopy Create free account
hub / github.com/NVlabs/InstantSplat / normalize_depth

Function normalize_depth

utils/sfm_utils.py:371–373  ·  view source on GitHub ↗

Normalize the depth map to a range between 0 and 1.

(depth_map)

Source from the content-addressed store, hash-verified

369 return overlapping_mask
370
371def 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
375def compute_co_vis_masks(sorted_conf_indices, depthmaps, pointmaps, camera_intrinsics, extrinsics_w2c, image_sizes, depth_threshold=0.1):
376

Callers 1

compute_co_vis_masksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected