Ocean
TestDescriptor.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_TESTDETECTOR_TEST_DESCRIPTOR_H
9 #define META_OCEAN_TEST_TESTCV_TESTDETECTOR_TEST_DESCRIPTOR_H
10 
12 
13 #include "ocean/base/Frame.h"
14 
15 namespace Ocean
16 {
17 
18 namespace Test
19 {
20 
21 namespace TestCV
22 {
23 
24 namespace TestDetector
25 {
26 
27 /**
28  * This class implements tests for the Descriptor class.
29  * @ingroup testcvdetector
30  */
31 class OCEAN_TEST_CV_DETECTOR_EXPORT TestDescriptor
32 {
33  public:
34 
35  /**
36  * Invokes all tests.
37  * @param testDuration Number of seconds for each test, with range (0, infinity)
38  * @param worker The worker object to distribute the computation
39  * @return True, if succeeded
40  */
41  static bool test(const double testDuration, Worker& worker);
42 
43  /**
44  * Tests the calculateHammingDistance() function.
45  * @param testDuration Number of seconds for each test, with range (0, infinity)
46  * @return True, if succeeded
47  */
48  static bool testCalculateHammingDistance(const double testDuration);
49 };
50 
51 }
52 
53 }
54 
55 }
56 
57 }
58 
59 #endif // META_OCEAN_TEST_TESTCV_TESTDETECTOR_TEST_DESCRIPTOR_H
This class implements tests for the Descriptor class.
Definition: TestDescriptor.h:32
static bool test(const double testDuration, Worker &worker)
Invokes all tests.
static bool testCalculateHammingDistance(const double testDuration)
Tests the calculateHammingDistance() function.
This class implements a worker able to distribute function calls over different threads.
Definition: Worker.h:33
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15