Beispiel #1
0
def test_rig_statistics_normal(
    scene_synthetic: synthetic_scene.SyntheticInputData, ):
    reference = scene_synthetic.reconstruction
    dataset = synthetic_dataset.SyntheticDataSet(
        reference,
        scene_synthetic.exifs,
        scene_synthetic.features,
        scene_synthetic.tracks_manager,
    )

    rig_statistics = stats.rig_statistics(dataset, [reference])
    assert rig_statistics == {}
Beispiel #2
0
def test_rig_statistics_null(
    scene_synthetic: synthetic_scene.SyntheticInputData,
    null_scene: types.Reconstruction,
) -> None:
    dataset = synthetic_dataset.SyntheticDataSet(
        null_scene,
        scene_synthetic.exifs,
        scene_synthetic.features,
        scene_synthetic.tracks_manager,
    )

    cameras_statistics = stats.rig_statistics(dataset, [null_scene])
    assert cameras_statistics == {}