8 #ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_ENLARGER_H
9 #define META_OCEAN_TEST_TESTCV_TEST_FRAME_ENLARGER_H
39 static bool test(
const double testDuration,
Worker& worker);
85 static bool testFrameMultiplyByTwo(
const unsigned int width,
const unsigned int height,
const unsigned int channels,
const double testDuration,
Worker& worker);
108 template <
typename T>
109 static bool validateAddBorder(
const Frame& original,
const Frame& enlarged,
const unsigned int borderSizeLeft,
const unsigned int borderSizeTop,
const unsigned int borderSizeRight,
const unsigned int borderSizeBottom,
const T* color);
122 template <
typename T>
123 static bool validateAddBorderNearestPixel(
const Frame& original,
const Frame& enlarged,
const unsigned int borderSizeLeft,
const unsigned int borderSizeTop,
const unsigned int borderSizeRight,
const unsigned int borderSizeBottom);
136 template <
typename T>
137 static bool validateAddBorderMirrored(
const Frame& original,
const Frame& enlarged,
const unsigned int borderSizeLeft,
const unsigned int borderSizeTop,
const unsigned int borderSizeRight,
const unsigned int borderSizeBottom);
158 static bool validateAddTransparentBorder(
const Frame& original,
const Frame& enlarged,
const unsigned int borderSizeLeft,
const unsigned int borderSizeTop,
const unsigned int borderSizeRight,
const unsigned int borderSizeBottom,
const bool transparentIs0xFF);
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements frame enlarger test functions.
Definition: TestFrameEnlarger.h:30
static bool testFrameMultiplyByTwo(const double testDuration, Worker &worker)
Tests upscaling of frames by a factor of two.
static bool testAddBorder(const double testDuration)
Tests the add border function using a defined border color.
static bool testAddBorderNearestPixel(const double testDuration)
Tests the add border function using the nearest pixel as color value.
static bool validateAddBorderNearestPixel(const Frame &original, const Frame &enlarged, const unsigned int borderSizeLeft, const unsigned int borderSizeTop, const unsigned int borderSizeRight, const unsigned int borderSizeBottom)
Validates the add border function using the nearest pixel as color value.
static bool testFrameMultiplyByTwo(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests upscaling of frames by a factor of two for specific image sizes and number of channels.
static bool validateAddBorderMirrored(const Frame &original, const Frame &enlarged, const unsigned int borderSizeLeft, const unsigned int borderSizeTop, const unsigned int borderSizeRight, const unsigned int borderSizeBottom)
Validates the add border function mirroring the frame's content.
static bool testAddTransparentBorder(const double testDuration)
Tests the add border function using the nearest pixel as color and alpha set to full transparency.
static bool testAddBorderMirrored(const double testDuration)
Tests the frame enlarger mirroring the frame's content.
static bool validateAddBorder(const Frame &original, const Frame &enlarged, const unsigned int borderSizeLeft, const unsigned int borderSizeTop, const unsigned int borderSizeRight, const unsigned int borderSizeBottom, const T *color)
Validates the function adding a border with static color.
static bool validationMultiplyByTwo(const Frame &original, const Frame &enlarged)
Validates the upscaling of frames by factor two.
static bool test(const double testDuration, Worker &worker)
Tests the entire frame enlarger functions.
static bool validateAddTransparentBorder(const Frame &original, const Frame &enlarged, const unsigned int borderSizeLeft, const unsigned int borderSizeTop, const unsigned int borderSizeRight, const unsigned int borderSizeBottom, const bool transparentIs0xFF)
Validates the function adding a border with static color.
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