8#ifndef META_OCEAN_TEST_TESTCV_TEST_INTEGRAL_IMAGE_H
9#define META_OCEAN_TEST_TESTCV_TEST_INTEGRAL_IMAGE_H
49 static bool testIntegralImage(
const unsigned int width,
const unsigned int height,
const double testDuration);
61 template <
typename T,
typename TIntegral,
unsigned int tChannels>
62 static bool testIntegralImage(
const unsigned int width,
const unsigned int height,
const double testDuration);
90 template <
typename T,
typename TIntegral,
unsigned int tChannels>
112 template <
typename T,
typename TIntegral,
unsigned int tChannels>
134 template <
typename T,
typename TIntegralAndSquared,
unsigned int tChannels>
157 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
unsigned int tChannels>
186 template <
typename T,
typename TIntegral,
unsigned int tChannels>
208 template <
typename T,
typename TIntegral,
unsigned int tChannels>
230 template <
typename T,
typename TIntegral,
unsigned int tChannels>
252 template <
typename T,
typename TIntegral,
unsigned int tChannels>
271 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
typename TVariance>
290 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
typename TVariance>
309 template <
typename T,
typename TIntegral>
310 static bool validateIntegralImage(
const T* source,
const TIntegral* integral,
const unsigned int width,
const unsigned int height,
const unsigned int channels,
const unsigned int sourcePaddingElements,
const unsigned int integralPaddingElements,
const unsigned int validationChecks = 20u);
326 template <
typename T,
typename TIntegral>
327 static bool validateBorderedIntegralImage(
const T* source,
const TIntegral* integral,
const unsigned int width,
const unsigned int height,
const unsigned int channels,
const unsigned int border,
const unsigned int sourcePaddingElements,
const unsigned int integralPaddingElements);
343 template <
typename T,
typename TIntegral,
unsigned int tChannels>
344 static bool validateBorderedIntegralImage(
const T* source,
const TIntegral* integral,
const unsigned int width,
const unsigned int height,
const unsigned int border,
const unsigned int sourcePaddingElements,
const unsigned int integralPaddingElements);
361 template <
typename T,
typename TIntegral,
unsigned int tChannels>
362 static bool validateBorderedIntegralImageSquared(
const T* source,
const TIntegral* integral,
const unsigned int width,
const unsigned int height,
const unsigned int border,
const unsigned int sourcePaddingElements,
const unsigned int integralPaddingElements,
const unsigned int validationChecks = 20u);
379 template <
typename T,
typename TIntegralAndSquared,
unsigned int tChannels>
380 static bool validateBorderedIntegralImageAndSquaredJoined(
const T* source,
const TIntegralAndSquared* integralAndSquared,
const unsigned int width,
const unsigned int height,
const unsigned int border,
const unsigned int sourcePaddingElements,
const unsigned int integralAndSquaredPaddingElements,
const unsigned int validationChecks = 20u);
400 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
unsigned int tChannels>
401 static bool validateBorderedIntegralImageAndSquaredSeparate(
const T* source,
const TIntegral* integral,
const TIntegralSquared* integralSquared,
const unsigned int width,
const unsigned int height,
const unsigned int border,
const unsigned int sourcePaddingElements,
const unsigned int integralPaddingElements,
const unsigned int integralSquaredPaddingElements,
const unsigned int validationChecks = 20u);
418 template <
typename T,
typename TIntegral,
unsigned int tChannels>
419 static bool validateBorderedIntegralImageMirror(
const T* source,
const TIntegral* integral,
const unsigned int width,
const unsigned int height,
const unsigned int border,
const unsigned int sourcePaddingElements,
const unsigned int integralPaddingElements,
const unsigned int validationChecks = 20u);
436 template <
typename T,
typename TIntegral,
unsigned int tChannels>
437 static bool validateBorderedIntegralImageSquaredMirror(
const T* source,
const TIntegral* integral,
const unsigned int width,
const unsigned int height,
const unsigned int border,
const unsigned int sourcePaddingElements,
const unsigned int integralPaddingElements,
const unsigned int validationChecks = 20u);
This class implements an integral image tester.
Definition TestIntegralImage.h:29
static bool testBorderedIntegralImageMirror(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered mirrored integral image function.
static bool testBorderedIntegralImageSquaredMirror(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered squared mirrored integral image function.
static bool validateBorderedIntegralImageMirror(const T *source, const TIntegral *integral, const unsigned int width, const unsigned int height, const unsigned int border, const unsigned int sourcePaddingElements, const unsigned int integralPaddingElements, const unsigned int validationChecks=20u)
Validates the mirrored integral image with border.
static bool validateBorderedIntegralImageSquaredMirror(const T *source, const TIntegral *integral, const unsigned int width, const unsigned int height, const unsigned int border, const unsigned int sourcePaddingElements, const unsigned int integralPaddingElements, const unsigned int validationChecks=20u)
Validates the squared mirrored integral image with border.
static bool testVarianceCalculation(const double testDuration)
Tests the bordered squared mirrored integral image function.
static bool testBorderedIntegralImageMirror(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered mirrored integral image function.
static bool testBorderedIntegralImageSquared(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered squared integral image function.
static bool testBorderedIntegralImage(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered integral image function.
static bool testLinedIntegralImageAndSquaredSeparate(const unsigned int width, const unsigned int height, const double testDuration)
Tests the separate lined integral and squared integral image function.
static bool testLinedIntegralImageAndSquaredSeparate(const unsigned int width, const unsigned int height, const double testDuration)
Tests the separate lined integral and squared integral image function.
static bool validateBorderedIntegralImage(const T *source, const TIntegral *integral, const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int border, const unsigned int sourcePaddingElements, const unsigned int integralPaddingElements)
Validates the integral image with border.
static bool test(const unsigned int width, const unsigned int height, const double testDuration, const TestSelector &selector=TestSelector())
Tests all integral image functions.
static bool testVarianceCalculationTwoRegions(const double testDuration)
Tests the variance calculation function for two joined regions.
static bool testVarianceCalculation(const double testDuration)
Tests the variance calculation function.
static bool testLinedIntegralImageAndSquaredJoined(const unsigned int width, const unsigned int height, const double testDuration)
Tests the joined lined integral and squared integral image function.
static bool testBorderedIntegralImage(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered integral image function.
static bool testLinedIntegralImageAndSquaredJoined(const unsigned int width, const unsigned int height, const double testDuration)
Tests the joined lined integral and squared integral image function.
static bool validateBorderedIntegralImageSquared(const T *source, const TIntegral *integral, const unsigned int width, const unsigned int height, const unsigned int border, const unsigned int sourcePaddingElements, const unsigned int integralPaddingElements, const unsigned int validationChecks=20u)
Validates the squared integral image with border.
static bool testBorderedIntegralImageComfort(const double testDuration)
Tests the comfort function for bordered integral images.
static bool validateBorderedIntegralImageAndSquaredSeparate(const T *source, const TIntegral *integral, const TIntegralSquared *integralSquared, const unsigned int width, const unsigned int height, const unsigned int border, const unsigned int sourcePaddingElements, const unsigned int integralPaddingElements, const unsigned int integralSquaredPaddingElements, const unsigned int validationChecks=20u)
Validates the separate integral and squared integral image with border.
static bool testLinedIntegralImageComfort(const double testDuration)
Tests the comfort function for lined integral images.
static bool testBorderedIntegralImageSquaredMirror(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered squared mirrored integral image function.
static bool testLinedIntegralImage(const unsigned int width, const unsigned int height, const double testDuration)
Tests the lined integral image function.
static bool validateBorderedIntegralImageAndSquaredJoined(const T *source, const TIntegralAndSquared *integralAndSquared, const unsigned int width, const unsigned int height, const unsigned int border, const unsigned int sourcePaddingElements, const unsigned int integralAndSquaredPaddingElements, const unsigned int validationChecks=20u)
Validates the joined integral and squared integral image with border.
static bool testLinedIntegralImageSquared(const unsigned int width, const unsigned int height, const double testDuration)
Tests the lined squared integral image function.
static bool testIntegralImage(const unsigned int width, const unsigned int height, const double testDuration)
Tests the standard integral image function without any border.
static bool testLinedIntegralImageSquared(const unsigned int width, const unsigned int height, const double testDuration)
Tests the lined squared integral image function.
static bool testIntegralImage(const unsigned int width, const unsigned int height, const double testDuration)
Tests the standard integral image function without any border.
static bool testLinedIntegralImage(const unsigned int width, const unsigned int height, const double testDuration)
Tests the lined integral image function.
static bool validateIntegralImage(const T *source, const TIntegral *integral, const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int sourcePaddingElements, const unsigned int integralPaddingElements, const unsigned int validationChecks=20u)
Validates the integral image without border.
static bool testVarianceCalculationTwoRegions(const double testDuration)
Tests the bordered squared mirrored integral image function.
static bool testBorderedIntegralImageSquared(const unsigned int width, const unsigned int height, const double testDuration)
Tests the bordered squared integral image function.
static bool validateBorderedIntegralImage(const T *source, const TIntegral *integral, const unsigned int width, const unsigned int height, const unsigned int border, const unsigned int sourcePaddingElements, const unsigned int integralPaddingElements)
Validates the integral image with border.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15