8 #ifndef META_OCEAN_CV_SYNTHESIS_SYNTHESIS_PYRAMID_F_1_H
9 #define META_OCEAN_CV_SYNTHESIS_SYNTHESIS_PYRAMID_F_1_H
51 inline const LayerF1& finestLayer()
const;
64 inline size_t layers()
const;
70 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;
82 explicit inline operator bool()
const;
113 inline SynthesisPyramidF1::operator bool()
const
115 return !layersReversedOrder_.empty();
This class implements a single layer for pixel synthesis within one frame and sub-pixel accuracy.
Definition: LayerF1.h:44
This class implements the main pixel synthesis object holding several synthesis pyramid layers.
Definition: SynthesisPyramidF1.h:31
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 ...
size_t layers() const
Returns the number of layers of this pyramid.
Definition: SynthesisPyramidF1.h:108
bool createInpaintingResult(Frame &frame, Worker *worker=nullptr) const override
Creates the final inpainting result for the finest pyramid layer.
const LayerF1 & finestLayer() const
Returns the finest synthesis layer of this pyramid object.
Definition: SynthesisPyramidF1.h:96
LayersF1 layersReversedOrder_
The individual synthesis layers for individual frame resolutions with reversed layer order.
Definition: SynthesisPyramidF1.h:87
SynthesisPyramidF1()
Creates a new synthesis pyramid object.
Definition: SynthesisPyramidF1.h:90
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 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< LayerF1 > LayersF1
Definition of a vector holding one-frame sub-pixel layer objects.
Definition: LayerF1.h:30
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15