Ocean
Loading...
Searching...
No Matches
TestFisheyeCamera.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_TESTMATH_FISHEYE_CAMERA_H
9#define META_OCEAN_TEST_TESTMATH_FISHEYE_CAMERA_H
10
12
13namespace Ocean
14{
15
16namespace Test
17{
18
19namespace TestMath
20{
21
22/**
23 * This class implements tests for the FisheyeCamera.
24 * @ingroup testmath
25 */
26class OCEAN_TEST_MATH_EXPORT TestFisheyeCamera
27{
28 public:
29
30 /**
31 * Tests all fisheye camera functions.
32 * @param testDuration Number of seconds for each test, with range (0, infinity)
33 * @return True, if succeeded
34 */
35 static bool test(const double testDuration);
36
37 /**
38 * Tests the constructors of the camera function.
39 * @param testDuration Number of seconds for each test, with range (0, infinity)
40 * @return True, if succeeded
41 */
42 template <typename T>
43 static bool testCameraConstructor(const double testDuration);
44
45 /**
46 * Tests the distortion function.
47 * @param width The width of the camera image in pixel
48 * @param height The height of the camera image in pixel
49 * @param testDuration Number of seconds for each test, with range (0, infinity)
50 * @return True, if succeeded
51 */
52 template <typename T>
53 static bool testDistortion(const unsigned int width, const unsigned int height, const double testDuration);
54
55 /**
56 * Tests the vector function with an undistorted camera.
57 * @param width The width of the camera image in pixel
58 * @param height The height of the camera image in pixel
59 * @param testDuration Number of seconds for each test, with range (0, infinity)
60 * @return True, if succeeded
61 */
62 template <typename T>
63 static bool testVectorDistortionFree(const unsigned int width, const unsigned int height, const double testDuration);
64
65 /**
66 * Tests the vector function with a distorted camera.
67 * @param width The width of the camera image in pixel
68 * @param height The height of the camera image in pixel
69 * @param testDuration Number of seconds for each test, with range (0, infinity)
70 * @return True, if succeeded
71 */
72 template <typename T>
73 static bool testVectorDistorted(const unsigned int width, const unsigned int height, const double testDuration);
74};
75
76}
77
78}
79
80}
81
82#endif // META_OCEAN_TEST_TESTMATH_FISHEYE_CAMERA_H
This class implements tests for the FisheyeCamera.
Definition TestFisheyeCamera.h:27
static bool testVectorDistortionFree(const unsigned int width, const unsigned int height, const double testDuration)
Tests the vector function with an undistorted camera.
static bool testCameraConstructor(const double testDuration)
Tests the constructors of the camera function.
static bool test(const double testDuration)
Tests all fisheye camera functions.
static bool testVectorDistorted(const unsigned int width, const unsigned int height, const double testDuration)
Tests the vector function with a distorted camera.
static bool testDistortion(const unsigned int width, const unsigned int height, const double testDuration)
Tests the distortion function.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15