8#ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_TRANSPOSER_H
9#define META_OCEAN_TEST_TESTCV_TEST_FRAME_TRANSPOSER_H
59 static bool testTransposer(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
71 template <
typename T,
unsigned int tChannels>
72 static bool testTransposer(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
109 template <
typename T,
unsigned int tChannels>
110 static bool validateTransposer(
const T* frame,
const T* transposed,
const unsigned int width,
const unsigned int height,
const unsigned int framePaddingElements,
const unsigned int transposedPaddingElements);
157 template <
typename T>
This class implements Ocean's image class.
Definition Frame.h:1879
This class implements a test for the frame transposer class.
Definition TestFrameTransposer.h:29
static bool validateRotate180(const Frame &sourceFrame, const Frame &targetFrame)
Validates the 180 degree rotation function.
static bool testRotate90(const double testDuration, Worker &worker)
Tests the rotation by 90 degrees function.
static bool testTransposer(const double testDuration, Worker &worker)
Tests the frame transposer function.
static bool validateTransposer(const T *frame, const T *transposed, const unsigned int width, const unsigned int height, const unsigned int framePaddingElements, const unsigned int transposedPaddingElements)
Validates the frame transposer function.
static bool testTransposer(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the frame transposer function.
static bool rotate(const Frame &sourceFrame, Frame &targetFrame, const int angle, Worker *worker)
Invokes the template-based rotate function.
static bool testTransposer(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the frame transposer function.
static bool validateRotate(const Frame &sourceFrame, const Frame &targetFrame, const int angle)
Validates the rotation function.
static bool rotate(const Frame &sourceFrame, Frame &targetFrame, const int angle, Worker *worker)
Invokes the template-based rotate function.
static bool testRotate180(const double testDuration, Worker &worker)
Tests the rotation by 180 degrees function.
static bool testRotate(const double testDuration, Worker &worker)
Tests the rotation by +/- 90 degree steps function.
static bool validateRotate90(const Frame &sourceFrame, const Frame &targetFrame, const bool clockwise)
Validates the 90 degree rotation function.
static bool test(const double testDuration, Worker &worker, const TestSelector &selector=TestSelector())
Tests the frame transposer functions.
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