Ocean
TestGaussianBlur.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_GAUSSIAN_BLUR_H
9 #define META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_GAUSSIAN_BLUR_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 Gaussian blur function of OpenCV.
27  * @ingroup testcvopencv
28  */
29 class OCEAN_TEST_CV_OPENCV_EXPORT TestGaussianBlur
30 {
31  public:
32 
33  /**
34  * Tests the Gaussian blur functions with random images
35  * @param testDuration Number of seconds for each test, with range (0, infinity)
36  */
37  static void test(const double testDuration);
38 
39  private:
40 
41  /**
42  * Benchmarks the Gaussian blur function for a specific frame type.
43  * @param width The width of the frame in pixel, with range [1, infinity)
44  * @param height The height of the frame in pixel, with range [1, infinity)
45  * @param channels The number of channels the frame has, with range [1, infinity)
46  * @param testDuration Number of seconds for each test, with range (0, infinity)
47  */
48  static void testGaussianBlur(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration);
49 };
50 
51 }
52 
53 }
54 
55 }
56 
57 }
58 
59 #endif // META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_GAUSSIAN_BLUR_H
This class tests the Gaussian blur function of OpenCV.
Definition: TestGaussianBlur.h:30
static void test(const double testDuration)
Tests the Gaussian blur functions with random images.
static void testGaussianBlur(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration)
Benchmarks the Gaussian blur function for a specific frame type.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15