8 #ifndef META_OCEAN_TEST_TESTCV_TEST_CANVAS_H
9 #define META_OCEAN_TEST_TESTCV_TEST_CANVAS_H
33 using DistanceMap = std::unordered_map<CV::PixelPosition, const uint8_t*, CV::PixelPosition>;
42 static bool test(
const double testDuration);
79 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:27
std::unordered_map< CV::PixelPosition, const uint8_t *, CV::PixelPosition > DistanceMap
Definition of an unordered map mapping distances to pixel values.
Definition: TestCanvas.h:33
static bool testPointWithFraction(const double testDuration)
Tests the point function when using a point location with fraction (with arbitrary location).
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 test(const double testDuration)
Invokes all tests.
static bool testColors()
Tests the color value functions.
static bool testLinePixelAccuracy(const double testDuration)
Tests the line drawing function with pixel accuracy.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15