8 #ifndef META_OCEAN_TEST_TESTCV_TESTADVANCED_TEST_ADVANCED_ZERO_MEAN_SUM_SQUARE_DIFFERENCES_H
9 #define META_OCEAN_TEST_TESTCV_TESTADVANCED_TEST_ADVANCED_ZERO_MEAN_SUM_SQUARE_DIFFERENCES_H
29 namespace TestAdvanced
64 static bool test(
const double testDuration);
112 template <
unsigned int tChannels,
unsigned int tPatchSize>
124 template <
unsigned int tChannels,
unsigned int tPatchSize>
136 template <
unsigned int tChannels,
unsigned int tPatchSize>
148 template <
unsigned int tChannels,
unsigned int tPatchSize>
160 template <
unsigned int tChannels,
unsigned int tPatchSize>
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements an advanced zero-mean sum square differences test.
Definition: TestAdvancedZeroMeanSumSquareDifferences.h:37
static bool testOneSubPixelPatch8BitPerChannel(const double testDuration)
Tests the sum square differences function for one sub-pixel accurate patch and one pixel-accurate pat...
static uint32_t calculate8BitPerChannel(const Frame &frame0, const Frame &frame1, const Vector2 ¢er0, const Vector2 ¢er1, const unsigned int patchSize)
CCalculates the ssd value between two sub-pixel patches.
static bool testTwoPixelPatchWithMask8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum square differences function for two pixel accurate patches in combination with a mask.
static bool testPatchMirroredBorderBuffer8BitPerChannel(const double testDuration)
Tests the sum square differences function between a sub-pixel image patch and a buffer.
static bool testPatchBuffer8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum square differences function between an image patch and a buffer.
static uint32_t calculate8BitPerChannel(const Frame &frame0, const Frame &frame1, const CV::PixelPosition ¢er0, const Vector2 ¢er1, const unsigned int patchSize)
Calculates the ssd value between one sub-pixel patch and one pixel-accurate patch.
static bool testTwoPixelPatchWithMask8BitPerChannel(const double testDuration)
Tests the sum square differences function for two pixel accurate patches in combination with a mask.
static bool testPatchBuffer8BitPerChannel(const double testDuration)
Tests the sum square differences function between an image patch and a buffer.
static uint32_t calculateMirroredBorder8BitPerChannel(const Frame &frame0, const Vector2 ¢er0, const uint8_t *buffer1, const unsigned int patchSize)
Calculates the ssd value between one sub-pixel patch (mirrored at the image border) and a buffer.
static bool testPatchMirroredBorderBuffer8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum square differences function between an image patch (mirrored at the image border) and a...
ImplementationType
Definition of individual types of implementation.
Definition: TestAdvancedZeroMeanSumSquareDifferences.h:44
@ IT_TEMPLATE
The template-based implementation.
Definition: TestAdvancedZeroMeanSumSquareDifferences.h:48
@ IT_NEON
The NEON-based implementation.
Definition: TestAdvancedZeroMeanSumSquareDifferences.h:52
@ IT_SSE
The SSE-based implementation.
Definition: TestAdvancedZeroMeanSumSquareDifferences.h:50
@ IT_NAIVE
The naive implementation.
Definition: TestAdvancedZeroMeanSumSquareDifferences.h:46
static bool test(const double testDuration)
Tests all advanced zero-mean sum square differences functions.
static uint32_t calculate8BitPerChannel(const Frame &frame0, const Vector2 ¢er0, const uint8_t *buffer1, const unsigned int patchSize)
Calculates the ssd value between one sub-pixel patch and a buffer.
static bool testTwoSubPixelPatch8BitPerChannel(const double testDuration)
Tests the sum square differences function for two sub-pixel accurate patches in two images.
static bool testTwoSubPixelPatch8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum square differences function for two sub-pixel accurate patches in two images.
static bool testOneSubPixelPatch8BitPerChannel(const unsigned int width, const unsigned int height, const double testDuration)
Tests the sum square differences function for one sub-pixel accurate patch and one pixel-accurate pat...
static IndexPair32 calculateWithMask8BitPerChannel(const Frame &frame0, const Frame &frame1, const Frame &mask0, const Frame &mask1, const CV::PixelPosition ¢er0, const CV::PixelPosition ¢er1, const unsigned int patchSize, const uint8_t maskValue)
Calculates the sum of squared differences value between two patches with associated masks.
std::pair< Index32, Index32 > IndexPair32
Definition of a pair holding 32 bit indices.
Definition: Base.h:138
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15