8 #ifndef META_OCEAN_TEST_TESTCV_TEST_INTEGRAL_IMAGE_H
9 #define META_OCEAN_TEST_TESTCV_TEST_INTEGRAL_IMAGE_H
37 static bool test(
const unsigned int width,
const unsigned int height,
const double testDuration);
46 static bool testIntegralImage(
const unsigned int width,
const unsigned int height,
const double testDuration);
58 template <
typename T,
typename TIntegral,
unsigned int tChannels>
59 static bool testIntegralImage(
const unsigned int width,
const unsigned int height,
const double testDuration);
87 template <
typename T,
typename TIntegral,
unsigned int tChannels>
109 template <
typename T,
typename TIntegral,
unsigned int tChannels>
131 template <
typename T,
typename TIntegralAndSquared,
unsigned int tChannels>
154 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
unsigned int tChannels>
183 template <
typename T,
typename TIntegral,
unsigned int tChannels>
205 template <
typename T,
typename TIntegral,
unsigned int tChannels>
227 template <
typename T,
typename TIntegral,
unsigned int tChannels>
249 template <
typename T,
typename TIntegral,
unsigned int tChannels>
268 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
typename TVariance>
287 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
typename TVariance>
306 template <
typename T,
typename TIntegral>
307 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);
323 template <
typename T,
typename TIntegral>
324 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);
340 template <
typename T,
typename TIntegral,
unsigned int tChannels>
341 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);
358 template <
typename T,
typename TIntegral,
unsigned int tChannels>
359 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);
376 template <
typename T,
typename TIntegralAndSquared,
unsigned int tChannels>
377 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);
397 template <
typename T,
typename TIntegral,
typename TIntegralSquared,
unsigned int tChannels>
398 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);
415 template <
typename T,
typename TIntegral,
unsigned int tChannels>
416 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);
433 template <
typename T,
typename TIntegral,
unsigned int tChannels>
434 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:27
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 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 test(const unsigned int width, const unsigned int height, const double testDuration)
Tests all integral image functions.
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.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15