Ocean
TestEpipolarGeometry.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_TEST_TESTGEOMETRY_TEST_EPIPOLAR_GEOMETRY_H
9 #define META_OCEAN_TEST_TESTGEOMETRY_TEST_EPIPOLAR_GEOMETRY_H
10 
12 
13 #include <set>
14 
15 namespace Ocean
16 {
17 
18 namespace Test
19 {
20 
21 namespace TestGeometry
22 {
23 
24 /**
25  * This class implements an epipolar geometry test.
26  * @ingroup testgeometry
27  */
28 class OCEAN_TEST_GEOMETRY_EXPORT TestEpipolarGeometry
29 {
30  public:
31 
32  /**
33  * Tests all epipolar geometry functions.
34  * @param testDuration Number of seconds for each test, with range (0, infinity)
35  * @return True, if succeeded
36  */
37  static bool test(const double testDuration);
38 
39  /**
40  * Tests the calculation of the fundamental matrix.
41  * All point coordinates are faultless.
42  * @param testDuration Number of seconds for each test, with range (0, infinity)
43  * @return True, if succeeded
44  */
45  static bool testFaultlessFundamentalMatrix(const double testDuration);
46 
47  /**
48  * Tests the calculation of the fundamental matrix.
49  * All point coordinates are faultless but have an Gaussian noise.
50  * @param testDuration Number of seconds for each test, with range (0, infinity)
51  * @return True, if succeeded
52  */
53  static bool testFaultlessNoisedFundamentalMatrix(const double testDuration);
54 
55  /**
56  * Tests the calculation of the fundamental matrix.
57  * Some point coordinates will be faulty.
58  * @param testDuration Number of seconds for each test, with range (0, infinity)
59  * @return True, if succeeded
60  */
61  static bool testFaultyFundamentalMatrix(const double testDuration);
62 
63  /**
64  * Tests the triangulation of image points
65  * @param testDuration Number of seconds for each test, with range (0, infinity)
66  * @return True, if succeeded
67  */
68  static bool testTriangulateImagePoints(const double testDuration);
69 };
70 
71 }
72 
73 }
74 
75 }
76 
77 #endif // META_OCEAN_TEST_TESTGEOMETRY_TEST_EPIPOLAR_GEOMETRY_H
This class implements an epipolar geometry test.
Definition: TestEpipolarGeometry.h:29
static bool testFaultlessNoisedFundamentalMatrix(const double testDuration)
Tests the calculation of the fundamental matrix.
static bool test(const double testDuration)
Tests all epipolar geometry functions.
static bool testTriangulateImagePoints(const double testDuration)
Tests the triangulation of image points.
static bool testFaultlessFundamentalMatrix(const double testDuration)
Tests the calculation of the fundamental matrix.
static bool testFaultyFundamentalMatrix(const double testDuration)
Tests the calculation of the fundamental matrix.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15