Ocean
Loading...
Searching...
No Matches
TestBullseyeDetectorMono.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#pragma once
9
11
13
15
16namespace Ocean
17{
18
19namespace Test
20{
21
22namespace TestCV
23{
24
25namespace TestDetector
26{
27
28namespace TestBullseyes
29{
30
31/**
32 * This class implements tests for the BullseyeDetectorMono
33 * @ingroup testcvdetectorbullseyes
34 */
35class OCEAN_TEST_CV_DETECTOR_BULLSEYES_EXPORT TestBullseyeDetectorMono : protected CV::Detector::Bullseyes::BullseyeDetectorMono
36{
37 public:
38
39 /**
40 * Tests the BullseyeDetectorMono functions.
41 * @param testDuration Number of seconds for each test, with range (0, infinity)
42 * @return True, if succeeded
43 */
44 static bool test(const double testDuration);
45
46 /**
47 * Tests the default constructor of Parameters.
48 * @return True, if succeeded
49 */
51
52 /**
53 * Tests the Parameters::isValid() function.
54 * @return True, if succeeded
55 */
56 static bool testParametersIsValid();
57
58 /**
59 * Tests the Parameters::framePyramidPixelThreshold() function.
60 * @return True, if succeeded
61 */
63
64 /**
65 * Tests the Parameters::setFramePyramidPixelThreshold() function.
66 * @return True, if succeeded
67 */
69
70 /**
71 * Tests the Parameters::framePyramidLayers() function.
72 * @return True, if succeeded
73 */
75
76 /**
77 * Tests the Parameters::setFramePyramidLayers() function.
78 * @return True, if succeeded
79 */
81
82 /**
83 * Tests the Parameters::useAdaptiveRowSpacing() function.
84 * @return True, if succeeded
85 */
87
88 /**
89 * Tests the Parameters::setUseAdaptiveRowSpacing() function.
90 * @return True, if succeeded
91 */
93
94 /**
95 * Tests the Parameters::defaultParameters() function.
96 * @return True, if succeeded
97 */
99
100 /**
101 * Unit test for BullseyeDetectorMono::detectBullseyes() with synthetic bullseye patterns
102 * @param testDuration The duration in seconds for which this test will be run, must be > 0.0
103 * @return True, if succeeded
104 */
105 static bool testDetectBullseyesWithSyntheticData(const double testDuration);
106
107 /**
108 * Stress test for BullseyeDetectorMono::detectBullseyes()
109 * @param testDuration The duration in seconds for which this test will be run, must be > 0.0
110 * @return True, if succeeded
111 */
112 static bool stressTestDetectBullseyes(const double testDuration);
113};
114
115} // namespace TestBullseyes
116
117} // namespace TestDetector
118
119} // namespace TestCV
120
121} // namespace Test
122
123} // namespace Ocean
Implementation of a monocular detector for the bullseye pattern.
Definition BullseyeDetectorMono.h:37
This class implements tests for the BullseyeDetectorMono.
Definition TestBullseyeDetectorMono.h:36
static bool test(const double testDuration)
Tests the BullseyeDetectorMono functions.
static bool testParametersSetFramePyramidLayers()
Tests the Parameters::setFramePyramidLayers() function.
static bool stressTestDetectBullseyes(const double testDuration)
Stress test for BullseyeDetectorMono::detectBullseyes()
static bool testParametersSetUseAdaptiveRowSpacing()
Tests the Parameters::setUseAdaptiveRowSpacing() function.
static bool testParametersFramePyramidPixelThreshold()
Tests the Parameters::framePyramidPixelThreshold() function.
static bool testDetectBullseyesWithSyntheticData(const double testDuration)
Unit test for BullseyeDetectorMono::detectBullseyes() with synthetic bullseye patterns.
static bool testParametersIsValid()
Tests the Parameters::isValid() function.
static bool testParametersUseAdaptiveRowSpacing()
Tests the Parameters::useAdaptiveRowSpacing() function.
static bool testParametersDefaultParameters()
Tests the Parameters::defaultParameters() function.
static bool testParametersSetFramePyramidPixelThreshold()
Tests the Parameters::setFramePyramidPixelThreshold() function.
static bool testParametersFramePyramidLayers()
Tests the Parameters::framePyramidLayers() function.
static bool testParametersConstructor()
Tests the default constructor of Parameters.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15