8 #ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_SHRINKER_H
9 #define META_OCEAN_TEST_TESTCV_TEST_FRAME_SHRINKER_H
40 static bool test(
const double testDuration,
Worker& worker);
134 static bool testFrameDownsamplingByTwo8Bit14641(
const unsigned int sourceWidth,
const unsigned int sourceHeight,
const unsigned int targetWidth,
const unsigned int targetHeight,
const unsigned int channels,
const double testDuration,
Worker& worker);
148 static bool validateDownsamplingByTwo8Bit11(
const Frame& source,
const Frame& target,
double* averageAbsError,
double* maximalAbsError, uint8_t* groundTruth =
nullptr,
const unsigned int groundTruthPaddingElements = 0u);
161 static bool validateDownsampleBinayMaskByTwo11(
const uint8_t* source,
const uint8_t* target,
const unsigned int sourceWidth,
const unsigned int sourceHeight,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
const unsigned int threshold);
179 static void validateDownsamplingByTwo8Bit14641(
const uint8_t* source,
const uint8_t* target,
const unsigned int sourceWidth,
const unsigned int sourceHeight,
const unsigned int targetWidth,
const unsigned int targetHeight,
const unsigned int channels,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
double* averageAbsError,
double* maximalAbsError, uint8_t* groundTruth =
nullptr,
const unsigned int groundTruthPaddingElements = 0u);
This class implements function to downsize a frame.
Definition: FrameShrinker.h:31
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements tests for the frame downsizing functions.
Definition: TestFrameShrinker.h:31
static bool testFrameDownsamplingByTwo8Bit14641ExtremeResolutions(Worker &worker)
Tests the 8 bit frame downsampling using 14641 filtering for extreme (small) frame resolutions.
static bool testDownsampleBinayMaskByTwo11(const unsigned int sourceWidth, const unsigned int sourceHeight, const double testDuration, Worker &worker)
Tests the binary frame downsampling using 11 filtering.
static bool testFrameDownsamplingByTwo8Bit11ExtremeResolutions(Worker &worker)
Tests the 8 bit frame downsampling using 11 filtering for extreme (small) frame resolutions.
static bool testDownsampleBinayMaskByTwo11ExtremeResolutions(Worker &worker)
Tests the binary frame downsampling using 11 filtering for extreme (small) frame resolutions.
static void validateDownsamplingByTwo8Bit14641(const uint8_t *source, const uint8_t *target, const unsigned int sourceWidth, const unsigned int sourceHeight, const unsigned int targetWidth, const unsigned int targetHeight, const unsigned int channels, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, double *averageAbsError, double *maximalAbsError, uint8_t *groundTruth=nullptr, const unsigned int groundTruthPaddingElements=0u)
Validates the downsampling of a frame using a 14641 filtering.
static bool testPyramidByTwo11(const double testDuration, Worker &worker)
Tests the 8 bit pyramid downsampling using 11 filtering.
static bool testRowDownsamplingByTwoThreeRows8Bit121(const double testDuration)
Tests the downsampling of three rows to one row.
static bool testDownsampleBinayMaskByTwo11(const double testDuration, Worker &worker)
Tests the binary frame downsampling using 11 filtering.
static bool validateDownsamplingByTwo8Bit11(const Frame &source, const Frame &target, double *averageAbsError, double *maximalAbsError, uint8_t *groundTruth=nullptr, const unsigned int groundTruthPaddingElements=0u)
Validates the downsampling of a frame using a 11 filtering.
static bool testFrameDownsamplingByTwo8Bit14641(const double testDuration, Worker &worker)
Tests the 8 bit frame downsampling using 14641 filtering.
static bool testFrameDownsamplingByTwo8Bit11(const unsigned int sourceWidth, const unsigned int sourceHeight, const unsigned int channels, const double testDuration, Worker &worker)
Tests the 8 bit frame downsampling using 11 filtering.
static bool testFrameDownsamplingByTwo8Bit14641(const unsigned int sourceWidth, const unsigned int sourceHeight, const unsigned int targetWidth, const unsigned int targetHeight, const unsigned int channels, const double testDuration, Worker &worker)
Tests the 8 bit frame downsampling using 14641 filtering.
static bool validateDownsampleBinayMaskByTwo11(const uint8_t *source, const uint8_t *target, const unsigned int sourceWidth, const unsigned int sourceHeight, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, const unsigned int threshold)
Validates the binary downsampling of a frame using a 11 filtering.
static bool testFrameDownsamplingByTwo8Bit11(const double testDuration, Worker &worker)
Tests the 8 bit frame downsampling using 11 filtering.
static bool test(const double testDuration, Worker &worker)
Tests the frame downsize.
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