8 #ifndef META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_INITIALIZER_I_1_H
9 #define META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_INITIALIZER_I_1_H
26 namespace TestSynthesis
91 unsigned int priority_ = 0u;
109 static bool test(
const unsigned int width,
const unsigned int height,
const double testDuration,
Worker& worker);
151 static bool testAppearanceMapping(
const unsigned int width,
const unsigned int height,
const unsigned int channels,
const double testDuration,
Worker& worker);
251 static bool testShrinkingErosion(
const unsigned int width,
const unsigned int height,
const unsigned int channels,
const double testDuration,
Worker& worker);
330 static bool allValueSame(
const Frame& mask,
const unsigned int x,
const unsigned int y,
const uint8_t value,
const unsigned int neighborhood);
This class implements the pixel mapping between source and target frames.
Definition: MappingI1.h:49
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements a generator for random numbers.
Definition: RandomGenerator.h:42
Helper function allowing to keep properties of a pixel to be inpainted.
Definition: TestInitializerI1.h:41
VectorI2 determineImageOrientation(const Frame &mask, const Frame &sobel) const
Determines the image orientation of this pixel.
InpaintingPixel(const CV::PixelPosition &pixelPosition, const Frame &mask, const Frame &sobel)
Creates a new pixel.
bool operator<(const InpaintingPixel &inpaintingPixel) const
Returns whether this pixel has a lower priority of a second pixel.
const VectorI2 & borderDirection() const
Returns the border direction of this pixel.
VectorI2 determineBorderDirection(const Frame &mask) const
Determines the border direction of this pixel.
This class implements a test for initializers with one frame.
Definition: TestInitializerI1.h:34
static bool testCoarserMappingAdaptionAreaConstrained(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the area constrained coarser mapping adaption initializer.
static bool testCoarserMappingAdaptionSpatialCostMask(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the spatial cost mask coarser mapping adaption initializer.
static bool testShrinkingErosion(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the deterministic erosion shrinking initializer.
static bool testCoarserMappingAdaptionAreaConstrained(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the area constrained coarser mapping adaption initializer.
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Invokes all test functions.
static bool testCoarserMappingAdaptionSpatialCostMask(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the spatial cost mask coarser mapping adaption initializer.
static bool testCoarserMappingAdaption(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the coarser mapping adaption initializer.
static bool testAppearanceMappingAreaConstrained(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the area constrained appearance mapping initializer.
static bool testAppearanceMappingAreaConstrained(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the area constrained appearance mapping initializer.
static bool testAppearanceMapping(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the appearance mapping initializer.
static bool testRandomMappingAreaConstrained(const double testDuration, Worker &worker)
Tests the area constrained random mapping initializer.
static bool testShrinkingErosion(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the deterministic erosion shrinking initializer.
static bool testShrinkingPatchMatching(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the patch matching shrinking initializer.
static bool testAppearanceMapping(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the appearance mapping initializer.
static bool allValueSame(const Frame &mask, const unsigned int x, const unsigned int y, const uint8_t value, const unsigned int neighborhood)
Returns whether all mask pixels in a neighborhood have a specific value.
static bool testRandomMapping(const double testDuration, Worker &worker)
Tests the random mapping initializer.
std::vector< InpaintingPixel > InpaintingPixels
Definition of a vector holding inpainting pixels.
Definition: TestInitializerI1.h:97
static bool shrinkPatchMatchingIteration(Frame &frame, Frame &mask, CV::Synthesis::MappingI1 &mapping, const bool useHeuristic, const unsigned int maximalRadius, RandomGenerator &randomGenerator, const bool useMaskForSSD, Worker &worker)
Invokes one shrinking iteration.
static unsigned int determineSSD(const Frame &frame, const Frame &mask, const unsigned int patchSize, const CV::PixelPosition &inpaintingPosition, const CV::PixelPosition &sourcePosition, const bool useMaskForSSD)
Determines the SSD between two image patches.
static bool testCoarserMappingAdaption(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the coarser mapping adaption initializer.
static bool testShrinkingErosionRandomized(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the randomized erosion shrinking initializer.
static bool testShrinkingPatchMatching(const double testDuration, Worker &worker)
Tests the patch matching shrinking initializer.
static bool testShrinkingErosionRandomized(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the randomized erosion shrinking initializer.
This class implements a worker able to distribute function calls over different threads.
Definition: Worker.h:33
VectorT2< int > VectorI2
Definition of a 2D vector with integer values.
Definition: Vector2.h:49
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15