Ocean
testopencv/TestHistogram.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_HISTOGRAM_H
9 #define META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_HISTOGRAM_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 implements performance and validation tests for image histogram, histogram equalization, etc.
27  * @ingroup testcvopencv
28  */
29 class OCEAN_TEST_CV_OPENCV_EXPORT TestHistogram
30 {
31  public:
32 
33  /**
34  * Test histogram functions
35  * @param testDuration Number of seconds for each subtest, range: (0, infinity)
36  * @return True if all subtests finished successfully, otherwise false
37  */
38  static bool test(const double testDuration);
39 
40  /**
41  * Test Ocean's implementation of Contrast-Limited Adaptive Histogram Equalization (CLAHE)
42  * @param testDuration Number of of seconds for each subtest, range: (0, infinity)
43  * @return True if all subtests finished successfully, otherwise false
44  */
45  static bool testCLAHE(const double testDuration);
46 };
47 
48 } // namespace TestOpenCV
49 
50 } // namespace TestCV
51 
52 } // namespace Test
53 
54 } // namespace Ocean
55 
56 #endif // META_OCEAN_TEST_TESTCV_TESTOPENCV_TEST_HISTOGRAM_H
This class implements performance and validation tests for image histogram, histogram equalization,...
Definition: testopencv/TestHistogram.h:30
static bool test(const double testDuration)
Test histogram functions.
static bool testCLAHE(const double testDuration)
Test Ocean's implementation of Contrast-Limited Adaptive Histogram Equalization (CLAHE)
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15