8 #ifndef META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_OPTIMIZER_F_1_H
9 #define META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_OPTIMIZER_F_1_H
27 namespace TestSynthesis
46 static bool test(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
106 template <
unsigned int tBorderFactor>
124 template <
unsigned int tBorderFactor>
139 template <
unsigned int tBorderFactor>
155 template <
unsigned int tBorderFactor>
Cost function:
Definition: MappingF1.h:52
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements a generator for random numbers.
Definition: RandomGenerator.h:42
This class implements a test for optimizers with one frame.
Definition: TestOptimizerF1.h:35
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Invokes all test functions.
static bool optimize4Neighborhood(Frame &frame, const Frame &mask, CV::Synthesis::MappingF1 &mapping, RandomGenerator &randomGenerator, const bool applyInitialMapping, const unsigned int radii, const unsigned int iterations, const unsigned int weightFactor, const unsigned int maxSpatialCost)
Invokes a high performance optimization with a 4-neighborhood.
static bool testHighPerformance4Neighborhood(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the 4-neighborhood high performance optimizer.
static Scalar determineCost(const Frame &frame, const Frame &mask, const Frame &reference, const CV::Synthesis::MappingF1 &mapping, const CV::PixelPosition &targetPosition, const Vector2 &sourcePosition, const unsigned int weightFactor, const unsigned int maxSpatialCost)
Determines the cost for a given location.
static bool testReferenceFrame4Neighborhood(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the 4-neighborhood optimizer with a reference frame.
static bool optimizeReference4Neighborhood(Frame &frame, const Frame &mask, const Frame &reference, CV::Synthesis::MappingF1 &mapping, RandomGenerator &randomGenerator, const bool applyInitialMapping, const unsigned int radii, const unsigned int iterations, const unsigned int weightFactor, const unsigned int maxSpatialCost)
Invokes an optimization with a 4-neighborhood and a reference frame.
static bool testReferenceFrame4Neighborhood(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the 4-neighborhood optimizer with a reference frame.
static Scalar determineCost(const Frame &frame, const Frame &mask, const CV::Synthesis::MappingF1 &mapping, const CV::PixelPosition &targetPosition, const Vector2 &sourcePosition, const unsigned int weightFactor, const unsigned int maxSpatialCost)
Determines the cost for a given location.
static bool testHighPerformance4Neighborhood(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the 4-neighborhood high performance optimizer.
This class implements a worker able to distribute function calls over different threads.
Definition: Worker.h:33
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15