Ocean
TestMorphology.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_MORPHOLOGY_H
9 #define META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_MORPHOLOGY_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 morphology functions of OpenCV.
27  * @ingroup testcvopencv
28  */
29 class OCEAN_TEST_CV_OPENCV_EXPORT TestMorphology
30 {
31  public:
32 
33  /**
34  * Invokes all morphology tests.
35  * @param testDuration Number of seconds for each test, with range (0, infinity)
36  * @return True, if succeeded
37  */
38  static bool test(const double testDuration);
39 
40  /**
41  * Tests the erosion filter function with a 3x3 filter kernel.
42  * @param testDuration Number of seconds for each test, with range (0, infinity)
43  * @return True, if succeeded
44  */
45  static bool testFrameFilterErosion3x3(const double testDuration);
46 
47  /**
48  * Tests the erosion filter function with a 3x3 filter kernel.
49  * @param testDuration Number of seconds for each test, with range (0, infinity)
50  * @return True, if succeeded
51  */
52  static bool testFrameFilterErosion5x5(const double testDuration);
53 
54  /**
55  * Tests the dilation filter function with a 3x3 filter kernel.
56  * @param testDuration Number of seconds for each test, with range (0, infinity)
57  * @return True, if succeeded
58  */
59  static bool testFrameFilterDilation3x3(const double testDuration);
60 
61  /**
62  * Tests the dilation filter function with a 5x5 filter kernel.
63  * @param testDuration Number of seconds for each test, with range (0, infinity)
64  * @return True, if succeeded
65  */
66  static bool testFrameFilterDilation5x5(const double testDuration);
67 
68  /**
69  * Tests the open filter function with a 3x3 filter kernel.
70  * @param testDuration Number of seconds for each test, with range (0, infinity)
71  * @return True, if succeeded
72  */
73  static bool testFrameFilterOpen3x3(const double testDuration);
74 
75  /**
76  * Tests the open filter function with a 5x5 filter kernel.
77  * @param testDuration Number of seconds for each test, with range (0, infinity)
78  * @return True, if succeeded
79  */
80  static bool testFrameFilterOpen5x5(const double testDuration);
81 
82  /**
83  * Tests the close filter function with a 3x3 filter kernel.
84  * @param testDuration Number of seconds for each test, with range (0, infinity)
85  * @return True, if succeeded
86  */
87  static bool testFrameFilterClose3x3(const double testDuration);
88 
89  /**
90  * Tests the close filter function with a 5x5 filter kernel.
91  * @param testDuration Number of seconds for each test, with range (0, infinity)
92  * @return True, if succeeded
93  */
94  static bool testFrameFilterClose5x5(const double testDuration);
95 };
96 
97 }
98 
99 }
100 
101 }
102 
103 }
104 
105 #endif // META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_MORPHOLOGY_H
This class tests morphology functions of OpenCV.
Definition: TestMorphology.h:30
static bool testFrameFilterDilation3x3(const double testDuration)
Tests the dilation filter function with a 3x3 filter kernel.
static bool test(const double testDuration)
Invokes all morphology tests.
static bool testFrameFilterClose5x5(const double testDuration)
Tests the close filter function with a 5x5 filter kernel.
static bool testFrameFilterClose3x3(const double testDuration)
Tests the close filter function with a 3x3 filter kernel.
static bool testFrameFilterErosion3x3(const double testDuration)
Tests the erosion filter function with a 3x3 filter kernel.
static bool testFrameFilterErosion5x5(const double testDuration)
Tests the erosion filter function with a 3x3 filter kernel.
static bool testFrameFilterOpen3x3(const double testDuration)
Tests the open filter function with a 3x3 filter kernel.
static bool testFrameFilterOpen5x5(const double testDuration)
Tests the open filter function with a 5x5 filter kernel.
static bool testFrameFilterDilation5x5(const double testDuration)
Tests the dilation filter function with a 5x5 filter kernel.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15