Ocean
Loading...
Searching...
No Matches
TestFREAKDescriptor.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_FREAK_DESCRIPTOR_H
9#define META_OCEAN_TEST_TESTCV_TESTDETECTOR_TEST_FREAK_DESCRIPTOR_H
10
12
14
16
18
20
21namespace Ocean
22{
23
24namespace Test
25{
26
27namespace TestCV
28{
29
30namespace TestDetector
31{
32
33/// Forward-declaration of the test class for FREAK descriptors
34template <size_t tSize>
35class TestFREAKDescriptorT;
36
37/// Typedef for the test class of the 32-bytes long FREAK descriptors
39
40/// Typedef for the test class of the 64-bytes long FREAK descriptors
42
43/**
44 * This class implements a test for the FREAK descriptor.
45 * @tparam tSize The size of the FREAK descriptor to test, in bytes, either 32 or 64
46 * @ingroup testcvdetector
47 */
48template <size_t tSize>
49class OCEAN_TEST_CV_DETECTOR_EXPORT TestFREAKDescriptorT : public CV::Detector::FREAKDescriptorT<tSize>
50{
51 public:
52
53 /**
54 * Invokes all test for the FREAK descriptor.
55 * @param testDuration Number of seconds for each test, with range (0, infinity)
56 * @param worker The worker object
57 * @param selector The test selector to filter tests
58 * @return True, if succeeded
59 */
60 static bool test(const double testDuration, Worker& worker, const TestSelector& selector);
61
62 /**
63 * Test the function creating a blurred frame pyramid.
64 * @param testDuration Number of seconds that this test will be run, range: (0, infinity)
65 * @param worker The worker object
66 * @return True if the test has passed, otherwise false
67 */
68 static bool testCreateBlurredFramePyramid(const double testDuration, Worker& worker);
69};
70
71#ifdef OCEAN_USE_EXTERNAL_TEST_FREAK_DESCRIPTOR
72
73/**
74 * Invokes all test for the FREAK descriptor.
75 * @param testDuration Number of seconds for each test, with range (0, infinity)
76 * @param worker The worker object
77 * @return True, if succeeded
78 * @tparam tSize The size of the FREAK descriptor in bytes, valid values: {32, 64}
79 */
80template <size_t tSize>
81bool TestFREAKDescriptorT_externalTests(const double testDuration, Worker& worker);
82
83#endif // OCEAN_USE_EXTERNAL_TEST_FREAK_DESCRIPTOR
84
85} // namespace TestDetector
86
87} // namespace TestCV
88
89} // namespace Test
90
91} // namespace Ocean
92
93#endif // META_OCEAN_TEST_TESTCV_TESTDETECTOR_TEST_FREAK_DESCRIPTOR_H
Forward-declaration of the descriptor class.
Definition FREAKDescriptor.h:220
Forward-declaration of the test class for FREAK descriptors.
Definition TestFREAKDescriptor.h:50
static bool test(const double testDuration, Worker &worker, const TestSelector &selector)
Invokes all test for the FREAK descriptor.
static bool testCreateBlurredFramePyramid(const double testDuration, Worker &worker)
Test the function creating a blurred frame pyramid.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
bool TestFREAKDescriptorT_externalTests(const double testDuration, Worker &worker)
Invokes all test for the FREAK descriptor.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15