Ocean
|
This class implements the base class for all synthesis initializers. More...
Public Member Functions | |
virtual bool | invoke (Worker *worker=nullptr) const =0 |
Invokes the initializer. More... | |
Public Member Functions inherited from Ocean::CV::Synthesis::Operator | |
virtual | ~Operator ()=default |
Destructs the object. More... | |
Protected Member Functions | |
Initializer (Layer &layer) | |
Creates a new initializer object. More... | |
Protected Member Functions inherited from Ocean::CV::Synthesis::Operator | |
Operator () | |
Creates a new operator object. More... | |
Operator (const Operator &object)=delete | |
Disabled copy constructor. More... | |
Operator & | operator= (const Operator &object)=delete |
Disabled copy operator. More... | |
Protected Attributes | |
Layer & | layer_ |
Synthesis layer that has to be initialized. More... | |
This class implements the base class for all synthesis initializers.
An initializer provides the initial mapping for a synthesis layer.
The initializer holds only references to e.g. the synthesis layers or any other input or output information.
Each initialization object is a simple container that gathers all objects that are necessary for the initialization directly when it is created.
Once the initializer has been created it should be invoked.
A initializer should not be invoked twice.
|
inlineprotected |
Creates a new initializer object.
layer | The layer for that the initial mapping has to be provided |
|
pure virtual |
Invokes the initializer.
worker | Optional worker object to distribute the computation. |
Implemented in Ocean::CV::Synthesis::InitializerSubset, Ocean::CV::Synthesis::InitializerShrinkingPatchMatchingI1, Ocean::CV::Synthesis::InitializerShrinkingErosionRandomizedI1, Ocean::CV::Synthesis::InitializerShrinkingErosionI1, Ocean::CV::Synthesis::InitializerCoarserMappingAdaptionSpatialCostMaskI1< tFactor, tNeighborhood >, Ocean::CV::Synthesis::InitializerMoveMappingI1, Ocean::CV::Synthesis::InitializerCopyMappingI1, Ocean::CV::Synthesis::InitializerContourMappingI1, and Ocean::CV::Synthesis::InitializerShrinkingPatchMatchingI1.
|
protected |
Synthesis layer that has to be initialized.