30namespace TestBullseyes
67 static bool test(
const double testDuration);
This class implements a stereo detector for bullseye patterns.
Definition BullseyeDetectorStereo.h:41
Definition of a bullseye composed of a location and a radius.
Definition Bullseye.h:32
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class implements tests for the BullseyeDetectorStereo.
Definition TestBullseyeDetectorStereo.h:38
static bool createRandomVisibleWorldPoint(RandomGenerator &randomGenerator, const StereoTestSetup &setup, Vector3 &worldPoint, Vector2 &imagePointA, Vector2 &imagePointB)
Creates a random 3D world point that is visible in both cameras of the stereo setup.
static bool testExtractBullseyeCandidates(const double testDuration, RandomGenerator &randomGenerator)
Tests the extractBullseyeCandidates() protected function.
static bool test(const double testDuration)
Tests the BullseyeDetectorStereo functions.
static bool testComputeCostMatrix(const double testDuration, RandomGenerator &randomGenerator)
Tests the computeCostMatrix() protected function.
static StereoTestSetup createRandomStereoSetup(RandomGenerator &randomGenerator)
Creates a randomized stereo camera setup for testing.
static bool testParameters(const double testDuration, RandomGenerator &randomGenerator)
Tests the Parameters class.
static CV::Detector::Bullseyes::Bullseye createRandomBullseyeAtPosition(RandomGenerator &randomGenerator, const Vector2 &position)
Creates a bullseye at a given position with random diameter and threshold.
static bool testExtractBullseyes(const double testDuration, RandomGenerator &randomGenerator)
Tests the extractBullseyes() protected function.
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.
std::shared_ptr< AnyCamera > SharedAnyCamera
Definition of a shared pointer holding an AnyCamera object with Scalar precision.
Definition AnyCamera.h:61
The namespace covering the entire Ocean framework.
Definition Accessor.h:15
Helper struct containing a randomized stereo camera setup for testing.
Definition TestBullseyeDetectorStereo.h:45
HomogenousMatrix4 world_T_cameraB
Transformation from camera B to world coordinates.
Definition TestBullseyeDetectorStereo.h:59
SharedAnyCamera cameraA
Camera A (left camera)
Definition TestBullseyeDetectorStereo.h:47
HomogenousMatrix4 world_T_cameraA
Transformation from camera A to world coordinates.
Definition TestBullseyeDetectorStereo.h:56
SharedAnyCamera cameraB
Camera B (right camera)
Definition TestBullseyeDetectorStereo.h:50
HomogenousMatrix4 world_T_device
Transformation from device to world coordinates.
Definition TestBullseyeDetectorStereo.h:53