8#ifndef OCEAN_TEST_TESTCV_TEST_FRAME_NORMALIZER_H 
    9#define OCEAN_TEST_TESTCV_TEST_FRAME_NORMALIZER_H 
   38        static bool test(
const double testDuration, 
Worker& worker);
 
   57        template <
typename T, 
bool tExtremeValueRange = false>
 
   77        template <
typename TSource, 
typename TTarget, 
unsigned int tChannels>
 
   95        template <
typename TFloat>
 
  111        template <
typename T>
 
  112        static bool verifyLinearNormalizedUint8(
const T* 
const frame, 
const uint8_t* 
const normalized, 
const unsigned int width, 
const unsigned int height, 
const unsigned int framePaddingElements, 
const unsigned int normalizedPaddingElements);
 
  130        template <
typename TSource, 
typename TTarget, 
unsigned int tChannels>
 
  131        static bool verifyNormalizeToFloat(
const TSource* frame, 
const TTarget* normalized, 
const unsigned int width, 
const unsigned height, 
const TTarget* bias, 
const TTarget* scale, 
const unsigned int framePaddingElements, 
const unsigned int normalizedPaddingElements, 
double& maxAbsoluteError);
 
 
This class implements tests for the FrameNormalizer class.
Definition TestFrameNormalizer.h:29
 
static bool testNormalizeToFloat(const double testDuration, Worker &worker)
Tests the normalization function to float images.
 
static bool testNormalizeToFloat(const double testDuration, Worker &worker)
Tests the normalization function to float images.
 
static bool testNormalizerToUint8(const double testDuration, Worker &worker)
Tests the 1-channel normalizer to 8-bit function.
 
static bool test(const double testDuration, Worker &worker)
Starts all tests of the FrameNormalizer class.
 
static bool verifyNormalizeToFloat(const TSource *frame, const TTarget *normalized, const unsigned int width, const unsigned height, const TTarget *bias, const TTarget *scale, const unsigned int framePaddingElements, const unsigned int normalizedPaddingElements, double &maxAbsoluteError)
Verifies the linear normalizer arbitrary images to a float image.
 
static bool verifyLinearNormalizedUint8(const T *const frame, const uint8_t *const normalized, const unsigned int width, const unsigned int height, const unsigned int framePaddingElements, const unsigned int normalizedPaddingElements)
Verifies the linear normalizer of arbitrary images to an 8 bit image.
 
static bool testNormalizerToUint8(const double testDuration, Worker &worker)
Tests the 1-channel normalizer to 8-bit function.
 
static bool testValueRangeNormalizerToUint8(const double testDuration, Worker &worker)
Test the value range of the float normalizer.
 
static bool testValueRangeNormalizerToUint8(const double testDuration, Worker &worker)
Test the value range of the float normalizer.
 
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