Ocean
TestPerformance.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_TESTCV_TESTOPENCV_TEST_PERFORMANCE_H
9 #define META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_PERFORMANCE_H
10 
12 
13 namespace Ocean
14 {
15 
16 namespace Test
17 {
18 
19 namespace TestCV
20 {
21 
22 namespace TestOpenCV
23 {
24 
25 /**
26  * This class tests the performance of the frame interpolation function of OpenCV.
27  * @ingroup testcvopencv
28  */
29 class OCEAN_TEST_CV_OPENCV_EXPORT TestPerformance
30 {
31  public:
32  /**
33  * Runs a series of performance comparisons between Ocean and OpenCV algorithms
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  private:
40 
41  static bool performancePerspectiveWarp(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration);
42 };
43 
44 }
45 
46 }
47 
48 }
49 
50 }
51 
52 #endif // META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_PERFORMANCE_H
This class tests the performance of the frame interpolation function of OpenCV.
Definition: TestPerformance.h:30
static bool test(const double testDuration)
Runs a series of performance comparisons between Ocean and OpenCV algorithms.
static bool performancePerspectiveWarp(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration)
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15