MCPcopy Create free account
hub / github.com/dcharatan/flowmap / resize_metadata

Function resize_metadata

scripts/colmap/run_both_at_flowmap_resolution.py:58–66  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

56 run_dense(resized_sparse_dir, resized_dense_dir)
57
58 def resize_metadata(path: Path) -> None:
59 extrinsics, intrinsics, image_names = read_colmap_model(path)
60 write_colmap_model(
61 path,
62 extrinsics,
63 intrinsics,
64 image_names,
65 (h_original, w_original),
66 )
67
68 # Copy and rescale the sparse outputs.
69 print("Resizing sparse outputs.")

Callers 1

mainFunction · 0.85

Calls 2

read_colmap_modelFunction · 0.90
write_colmap_modelFunction · 0.90

Tested by

no test coverage detected