8 #ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_VARIANCE_H
9 #define META_OCEAN_TEST_TESTCV_TEST_FRAME_VARIANCE_H
40 static bool test(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
52 static bool testDeviation1Channel8Bit(
const unsigned int width,
const unsigned int height,
const unsigned int window,
const double testDuration);
63 static bool testFrameStatistics(
const unsigned width,
const unsigned int height,
const double testDuration);
78 template <
typename TElementType,
typename TSummationType,
typename TMultiplicationType,
unsigned int tChannels>
79 static bool testFrameStatistics(
const unsigned width,
const unsigned int height,
const double testDuration);
90 template <
typename T,
typename TVariance>
109 template <
typename TElementType,
unsigned int tChannels>
110 static bool validateFrameStatistics(
const TElementType* frame,
const unsigned int width,
const unsigned int height,
const unsigned paddingElements,
const double* testMean,
const double* testVariance,
const double* testStandardDeviation,
double& maxErrorMean,
double& maxErrorVariance,
double& maxErrorStandardDeviation);
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements tests for the frame variance functions.
Definition: TestFrameVariance.h:29
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the frame variance functions.
static bool validateFrameStatistics(const TElementType *frame, const unsigned int width, const unsigned int height, const unsigned paddingElements, const double *testMean, const double *testVariance, const double *testStandardDeviation, double &maxErrorMean, double &maxErrorVariance, double &maxErrorStandardDeviation)
Validation computation of per-channel mean, variance, and standard deviation of images.
static bool validateDeviation1Channel(const Frame &frame, const Frame &variance, const unsigned int window)
Validates the frame deviation function for a 1 channel 8 bit frame.
static bool testDeviation1Channel8Bit(const unsigned int width, const unsigned int height, const unsigned int window, const double testDuration)
Tests the frame deviation function for a 1 channel 8 bit frame.
static bool testFrameStatistics(const unsigned width, const unsigned int height, const double testDuration)
Tests the computation of per-channel mean, variance, and standard deviation of images This test will ...
static bool testFrameStatistics(const unsigned width, const unsigned int height, const double testDuration)
Tests the computation of per-channel mean, variance, and standard deviation of images This test will ...
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