Debian Codegraph @

src/pycolmap/estimators/cost_functions_test.py

raw
1 import pycolmap
2
3
4 def test_cost_functions_submodule_exists():
5 assert hasattr(pycolmap._core, "cost_functions")
6
7
8 def test_reproj_error_cost_exists():
9 assert hasattr(pycolmap._core.cost_functions, "ReprojErrorCost")
10
11
12 def test_sampson_error_cost_exists():
13 assert hasattr(pycolmap._core.cost_functions, "SampsonErrorCost")
14
15
16 def test_absolute_pose_prior_cost_exists():
17 assert hasattr(pycolmap._core.cost_functions, "AbsolutePosePriorCost")
18
19
20 def test_absolute_pose_position_prior_cost_exists():
21 assert hasattr(
22 pycolmap._core.cost_functions, "AbsolutePosePositionPriorCost"
23 )
24
25
26 def test_relative_pose_prior_cost_exists():
27 assert hasattr(pycolmap._core.cost_functions, "RelativePosePriorCost")
28
29
30 def test_point3d_alignment_cost_exists():
31 assert hasattr(pycolmap._core.cost_functions, "Point3DAlignmentCost")