Ocean
|
This class is the base class for all synthesis optimizers. More...
Public Member Functions | |
virtual bool | invoke (const unsigned int radii, const unsigned int iterations=5u, const unsigned int maxSpatialCost=0xFFFFFFFFu, Worker *worker=nullptr, const bool applyInitialMapping=true) const =0 |
Invokes the operator. More... | |
Public Member Functions inherited from Ocean::CV::Synthesis::Operator | |
virtual | ~Operator ()=default |
Destructs the object. More... | |
Protected Member Functions | |
Optimizer (Layer &layer) | |
Creates a new operator 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_ |
Optimizer layer. More... | |
This class is the base class for all synthesis optimizers.
An optimizer tries to improve a given synthesis mapping to provide a more optimal synthesis result.
The optimizer should not be applied before the mapping has been initialized.
|
inlineprotected |
Creates a new operator object.
layer | The layer for that this operator is applied |
|
pure virtual |
Invokes the operator.
radii | Number of improvement radii during one optimization iteration for each mapping position |
iterations | Number of optimization iterations that will be applied |
maxSpatialCost | Maximal spatial cost |
worker | Optional worker object to distribute the computation |
applyInitialMapping | True, to apply the initial mapping before the optimization starts |
Implemented in Ocean::CV::Synthesis::OptimizerSubset.