8 #ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_TRANSPOSER_H
9 #define META_OCEAN_TEST_TESTCV_TEST_FRAME_TRANSPOSER_H
36 static bool test(
const double testDuration,
Worker& worker);
56 static bool testTransposer(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
68 template <
typename T,
unsigned int tChannels>
69 static bool testTransposer(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
106 template <
typename T,
unsigned int tChannels>
107 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);
154 template <
typename T>
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements a test for the frame transposer class.
Definition: TestFrameTransposer.h:27
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 test(const double testDuration, Worker &worker)
Tests the frame transposer functions.
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.
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