Ocean
Loading...
Searching...
No Matches
TestFeatureDetector.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_FEATURE_DETECTOR_H
9#define META_OCEAN_TEST_TESTCV_TESTDETECTOR_TEST_FEATURE_DETECTOR_H
10
12
13#include "ocean/base/Frame.h"
14
16
17namespace Ocean
18{
19
20namespace Test
21{
22
23namespace TestCV
24{
25
26namespace TestDetector
27{
28
29/**
30 * This class implements tests for the FeatureDetector class.
31 * @ingroup testcvdetector
32 */
33class OCEAN_TEST_CV_DETECTOR_EXPORT TestFeatureDetector
34{
35 public:
36
37 /**
38 * Invokes all tests.
39 * @param testFrame Optional explicit test frame to be used, can be invalid
40 * @param testDuration Number of seconds for each test, with range (0, infinity)
41 * @param worker The worker object to distribute the computation
42 * @param selector The test selector to filter tests
43 * @return True, if succeeded
44 */
45 static bool test(const Frame& testFrame, const double testDuration, Worker& worker, const TestSelector& selector);
46
47 /**
48 * Tests the Harris corner detection.
49 * This test is mainly a stress test.
50 * @param testFrame Optional explicit test frame to be used, can be invalid
51 * @param testDuration Number of seconds for each test, with range (0, infinity)
52 * @param worker The worker object to distribute the computation
53 * @return True, if succeeded
54 */
55 static bool testDetermineHarrisPoints(const Frame& testFrame, const double testDuration, Worker& worker);
56};
57
58}
59
60}
61
62}
63
64}
65
66#endif // META_OCEAN_TEST_TESTCV_TESTDETECTOR_TEST_FEATURE_DETECTOR_H
This class implements Ocean's image class.
Definition Frame.h:1879
This class implements tests for the FeatureDetector class.
Definition TestFeatureDetector.h:34
static bool test(const Frame &testFrame, const double testDuration, Worker &worker, const TestSelector &selector)
Invokes all tests.
static bool testDetermineHarrisPoints(const Frame &testFrame, const double testDuration, Worker &worker)
Tests the Harris corner detection.
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
The namespace covering the entire Ocean framework.
Definition Accessor.h:15