8 #ifndef META_OCEAN_TEST_TESTCV_TESTADVANCED_TEST_FRAME_RECTIFICATION_H
9 #define META_OCEAN_TEST_TESTCV_TESTADVANCED_TEST_FRAME_RECTIFICATION_H
30 namespace TestAdvanced
49 static bool test(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
79 static bool testTriangleObject(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
This class implements the abstract base class for all AnyCamera objects.
Definition: AnyCamera.h:130
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements a frame rectification test.
Definition: TestFrameRectification.h:38
static bool renderPlanarRectangleObject(const Frame &objectFrame, Frame &targetFrame, const AnyCamera &camera, const HomogenousMatrix4 &world_T_camera, const Vector2 &objectDimension)
Renders a planar rectangular object with given camera profile and camera pose.
static bool testArbitraryRectangleObject(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the rectification function for an arbitrary rectangle object.
static bool testTriangleObject(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the rectification function for triangles.
static HomogenousMatrix4 determineCameraPose(const AnyCamera &camera, const Box3 &boundingBox, const Quaternion &world_R_camera)
Determines a camera pose so that all corners of a given bounding box are visible in the camera.
static double determineFrameError(const Frame &frame0, const Frame &frame1, const uint8_t *skipColor0, const uint8_t *skipColor1)
Determines the average color intensity error between two frames while excluding a two pixel thick bor...
static bool testPlanarRectangleObjectMask(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the mask rectification function for a planar rectangle object.
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the frame rectification functions.
static bool testPlanarRectangleObject(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the rectification function for a planar rectangle object.
static bool testTriangleObjectMask(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the mask rectification function for triangles.
static bool testArbitraryRectangleObjectMask(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the mask rectification function for an arbitrary rectangle object.
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