8 #ifndef META_OCEAN_CV_SYNTHESIS_SYNTHESIS_PYRAMID_I_1_H
9 #define META_OCEAN_CV_SYNTHESIS_SYNTHESIS_PYRAMID_I_1_H
52 inline const LayerI1& finestLayer()
const;
65 inline size_t layers()
const;
71 bool applyInpainting(
const InitializationTechnique initializationTechnique,
RandomGenerator& randomGenerator,
const unsigned int weightFactor = 5u,
const unsigned int borderFactor = 26u,
const unsigned int maxSpatialCost = (
unsigned int)(-1),
const unsigned int optimizationIterations = 2u,
const unsigned int forced1ChannelLayers = 0u,
const unsigned int skippingLayers = 0u,
Worker* worker =
nullptr)
override;
85 bool applyInpainting(
const Constraints& constraints,
RandomGenerator& randomGenerator,
const unsigned int weightFactor = 5u,
const unsigned int borderFactor = 26u,
const unsigned int maxSpatialCost = (
unsigned int)(-1),
const unsigned int optimizationIterations = 4u,
const unsigned int skippingConstraintLayers = 2u,
Worker* worker =
nullptr);
97 explicit inline operator bool()
const;
128 inline SynthesisPyramidI1::operator bool()
const
130 return !layersReversedOrder_.empty();
This class implements a container holding constraints.
Definition: Constraint.h:304
This class implements a single layer for pixel synthesis within one frame and pixel accuracy.
Definition: LayerI1.h:41
This class implements the base class for all synthesis pyramids.
Definition: SynthesisPyramid.h:33
virtual bool applyInpainting(const SynthesisQuality synthesisQuality, RandomGenerator &randomGenerator, const unsigned int weightFactor=5u, const unsigned int borderFactor=25u, const unsigned int maxSpatialCost=(unsigned int)(-1), Worker *worker=nullptr)
Applies the inpainting on an initialized synthesis pyramid satisfying a specific quality.
InitializationTechnique
Definition of individual initialization techniques.
Definition: SynthesisPyramid.h:55
This class implements the main pixel synthesis object holding several synthesis pyramid layers for on...
Definition: SynthesisPyramidI1.h:32
size_t layers() const
Returns the number of layers of this pyramid.
Definition: SynthesisPyramidI1.h:123
const LayerI1 & finestLayer() const
Returns the finest synthesis layer of this pyramid object.
Definition: SynthesisPyramidI1.h:111
SynthesisPyramidI1()
Creates a new synthesis pyramid object.
Definition: SynthesisPyramidI1.h:105
LayersI1 layersReversedOrder_
The individual synthesis layers for individual frame resolutions with reversed layer order.
Definition: SynthesisPyramidI1.h:102
bool applyInpainting(const Constraints &constraints, RandomGenerator &randomGenerator, const unsigned int weightFactor=5u, const unsigned int borderFactor=26u, const unsigned int maxSpatialCost=(unsigned int)(-1), const unsigned int optimizationIterations=4u, const unsigned int skippingConstraintLayers=2u, Worker *worker=nullptr)
Applies the inpainting on an initialized synthesis pyramid while using a set of constraints to guide ...
bool createInpaintingResult(Frame &frame, Worker *worker=nullptr) const override
Creates the final inpainting result for the finest pyramid layer.
bool applyInpainting(const InitializationTechnique initializationTechnique, RandomGenerator &randomGenerator, const unsigned int weightFactor=5u, const unsigned int borderFactor=26u, const unsigned int maxSpatialCost=(unsigned int)(-1), const unsigned int optimizationIterations=2u, const unsigned int forced1ChannelLayers=0u, const unsigned int skippingLayers=0u, Worker *worker=nullptr) override
Applies the inpainting on an initialized synthesis pyramid while a specific initialization technique ...
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 worker able to distribute function calls over different threads.
Definition: Worker.h:33
std::vector< LayerI1 > LayersI1
Definition of a vector holding one-frame pixel layer objects.
Definition: LayerI1.h:27
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15