8#ifndef META_OCEAN_TEST_TESTCV_TEST_CANVAS_H
9#define META_OCEAN_TEST_TESTCV_TEST_CANVAS_H
35 using DistanceMap = std::unordered_map<CV::PixelPosition, const uint8_t*, CV::PixelPosition>;
82 static unsigned int ssd(
const uint8_t* pixel0,
const uint8_t* pixel1,
const unsigned int channels);
This class implements tests for the Canvas class.
Definition TestCanvas.h:29
std::unordered_map< CV::PixelPosition, const uint8_t *, CV::PixelPosition > DistanceMap
Definition of an unordered map mapping distances to pixel values.
Definition TestCanvas.h:35
static bool testPointWithFraction(const double testDuration)
Tests the point function when using a point location with fraction (with arbitrary location).
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Invokes all tests.
static unsigned int ssd(const uint8_t *pixel0, const uint8_t *pixel1, const unsigned int channels)
Returns the sum of squared differences between the color values of two pixels.
static bool testPointNoFraction(const double testDuration)
Tests the point function when using a point location without fraction (perfectly placed in the center...
static bool testColors()
Tests the color value functions.
static bool testLinePixelAccuracy(const double testDuration)
Tests the line drawing function with pixel accuracy.
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