(
reconstruction: Reconstruction,
)
| 33 | |
| 34 | |
| 35 | def 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 | |
| 52 | def iterative_global_refinement( |
no outgoing calls
no test coverage detected