コード例 #1
0
ファイル: conftest.py プロジェクト: Gurumi432/OpenSfM
def scene_synthetic_rig() -> synthetic_scene.SyntheticInputData:
    np.random.seed(42)
    data = synthetic_examples.synthetic_rig_scene()

    maximum_depth = 40
    projection_noise = 1.0
    gps_noise = 0.1

    return synthetic_scene.SyntheticInputData(data.get_reconstruction(),
                                              maximum_depth, projection_noise,
                                              gps_noise, False)
コード例 #2
0
def scene_synthetic_rig():
    np.random.seed(42)
    data = synthetic_examples.synthetic_rig_scene()

    maximum_depth = 40
    projection_noise = 1.0
    gps_noise = 5.0

    exifs = data.get_scene_exifs(gps_noise)
    features, desc, colors, graph = data.get_tracks_data(
        maximum_depth, projection_noise)
    return data, exifs, features, desc, colors, graph
コード例 #3
0
def scene_synthetic_rig() -> synthetic_scene.SyntheticInputData:
    np.random.seed(42)
    data = synthetic_examples.synthetic_rig_scene()

    maximum_depth = 40
    projection_noise = 1.0
    gps_noise = 0.1

    reference = geo.TopocentricConverter(47.0, 6.0, 0)
    return synthetic_scene.SyntheticInputData(
        data.get_reconstruction(),
        reference,
        maximum_depth,
        projection_noise,
        gps_noise,
        False,
    )