8#ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_ENLARGER_H
9#define META_OCEAN_TEST_TESTCV_TEST_FRAME_ENLARGER_H
88 static bool testFrameMultiplyByTwo(
const unsigned int width,
const unsigned int height,
const unsigned int channels,
const double testDuration,
Worker& worker);
111 template <
typename T>
112 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);
125 template <
typename T>
126 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);
139 template <
typename T>
140 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);
161 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:1879
This class implements frame enlarger test functions.
Definition TestFrameEnlarger.h:32
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 test(const double testDuration, Worker &worker, const TestSelector &selector=TestSelector())
Tests the entire frame enlarger functions.
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 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 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