8#ifndef META_OCEAN_TEST_TESTCV_SUM_ABSOLUTE_DIFFERENCES_H
9#define META_OCEAN_TEST_TESTCV_SUM_ABSOLUTE_DIFFERENCES_H
110 template <
typename T>
119 template <
typename T,
unsigned int tChannels>
131 template <
unsigned int tChannels,
unsigned int tPatchSize>
143 template <
unsigned int tChannels,
unsigned int tPixels>
155 template <
unsigned int tChannels,
unsigned int tPatchSize>
167 template <
unsigned int tChannels,
unsigned int tSize>
This class implements sum absolute differences (SAD) tests.
Definition TestSumAbsoluteDifferences.h:31
static bool testDifferenceBetweenFramesWithSeveralPlanes(const double testDuration)
Tests the absolute differences function between entire frames with several planes.
static bool testPatchMirroredBorder8BitPerChannel(const double testDuration)
Tests the sum absolute differences function for two image patches which are mirrored at the image bor...
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Invokes all tests testing absolute differences functionalities.
static bool testBuffer8BitPerChannel(const double testDuration)
Tests the absolute differences function for two buffers.
static bool testDifferenceBetweenFramesWithOnePlane()
Applies one test of the absolute differences function between entire frames with one plane for a spec...
static bool testPatch8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the absolute differences function for two image patches.
static bool testPatch8BitPerChannel(const double testDuration)
Tests the absolute differences function for two image patches.
static bool testDifferenceBetweenFramesWithOnePlane(const double testDuration)
Tests the absolute differences function between entire frames with one plane.
static bool testDifferenceBetweenFramesWithOnePlane()
Applies one test of the absolute differences function between entire frames with one plane for a spec...
static bool testPatchMirroredBorder8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum absolute differences function for two image patches which are mirrored at the image bor...
static bool testPatchBuffer8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum absolute differences function between an image patch and a buffer.
ImplementationType
Definition of individual types of implementation.
Definition TestSumAbsoluteDifferences.h:38
@ IT_TEMPLATE
The template-based implementation.
Definition TestSumAbsoluteDifferences.h:42
@ IT_NAIVE
The naive implementation.
Definition TestSumAbsoluteDifferences.h:40
@ IT_NEON
The NEON-based implementation.
Definition TestSumAbsoluteDifferences.h:46
@ IT_SSE
The SSE-based implementation.
Definition TestSumAbsoluteDifferences.h:44
static bool testPatchBuffer8BitPerChannel(const double testDuration)
Tests the sum absolute differences function between an image patch and a buffer.
static bool testBuffer8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum absolute differences function for two buffers.
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