Ocean
Loading...
Searching...
No Matches
TestBullseyeDetectorStereo.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 BullseyeDetectorStereo
33 * @ingroup testcvdetectorbullseyes
34 */
35class OCEAN_TEST_CV_DETECTOR_BULLSEYES_EXPORT TestBullseyeDetectorStereo : protected CV::Detector::Bullseyes::BullseyeDetectorStereo
36{
37 public:
38
39 /**
40 * Tests the BullseyeDetectorStereo 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 * Stress test for BullseyeDetectorStereo::detectBullseyes()
48 * @param testDuration The duration in seconds for which this test will be run, must be > 0.0
49 * @param randomGenerator A random generator that will be used to generate test data
50 * @return True, if succeeded
51 */
52 static bool stressTestDetectBullseyes(const double testDuration, RandomGenerator& randomGenerator);
53
54 /**
55 * Tests the Parameters class.
56 * @param testDuration The duration in seconds for which this test will be run, must be > 0.0
57 * @param randomGenerator A random generator that will be used to generate test data
58 * @return True, if succeeded
59 */
60 static bool testParameters(const double testDuration, RandomGenerator& randomGenerator);
61
62 /**
63 * Tests the invalidMatchingCost() static function.
64 * @return True, if succeeded
65 */
67
68 /**
69 * Tests the Candidate class.
70 * @param testDuration The duration in seconds for which this test will be run, must be > 0.0
71 * @param randomGenerator A random generator that will be used to generate test data
72 * @return True, if succeeded
73 */
74 static bool testCandidate(const double testDuration, RandomGenerator& randomGenerator);
75
76 /**
77 * Tests the triangulateBullseye() static function.
78 * @param testDuration The duration in seconds for which this test will be run, must be > 0.0
79 * @param randomGenerator A random generator that will be used to generate test data
80 * @return True, if succeeded
81 */
82 static bool testTriangulateBullseye(const double testDuration, RandomGenerator& randomGenerator);
83};
84
85} // namespace TestBullseyes
86
87} // namespace TestDetector
88
89} // namespace TestCV
90
91} // namespace Test
92
93} // namespace Ocean
This class implements a stereo detector for bullseye patterns.
Definition BullseyeDetectorStereo.h:41
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class implements tests for the BullseyeDetectorStereo.
Definition TestBullseyeDetectorStereo.h:36
static bool test(const double testDuration)
Tests the BullseyeDetectorStereo functions.
static bool testParameters(const double testDuration, RandomGenerator &randomGenerator)
Tests the Parameters class.
static bool testCandidate(const double testDuration, RandomGenerator &randomGenerator)
Tests the Candidate class.
static bool stressTestDetectBullseyes(const double testDuration, RandomGenerator &randomGenerator)
Stress test for BullseyeDetectorStereo::detectBullseyes()
static bool testTriangulateBullseye(const double testDuration, RandomGenerator &randomGenerator)
Tests the triangulateBullseye() static function.
static bool testInvalidMatchingCost()
Tests the invalidMatchingCost() static function.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15