MCPcopy Create free account
hub / github.com/colmap/colmap / has_unknown_sensor_from_rig

Function has_unknown_sensor_from_rig

python/examples/custom_incremental_pipeline.py:35–49  ·  view source on GitHub ↗
(
    reconstruction: Reconstruction,
)

Source from the content-addressed store, hash-verified

33
34
35def has_unknown_sensor_from_rig(
36 reconstruction: Reconstruction,
37) -> bool:
38 parameterized_rig_ids = set()
39 for image in reconstruction.images.values():
40 parameterized_rig_ids.add(image.frame.rig_id)
41 for rig_id in parameterized_rig_ids:
42 rig = reconstruction.rig(rig_id)
43 for sensor_id, sensor_from_rig in rig.non_ref_sensors.items():
44 if (
45 sensor_id.type == pycolmap.SensorType.CAMERA
46 and sensor_from_rig is None
47 ):
48 return True
49 return False
50
51
52def iterative_global_refinement(

Callers 1

reconstruct_sub_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected