|
Ocean
|
This class is the base class for all synthesis optimizers. More...
#include <Optimizer.h>
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. | |
Public Member Functions inherited from Ocean::CV::Synthesis::Operator | |
| virtual | ~Operator ()=default |
| Destructs the object. | |
Protected Member Functions | |
| Optimizer (Layer &layer) | |
| Creates a new operator object. | |
Protected Member Functions inherited from Ocean::CV::Synthesis::Operator | |
| Operator () | |
| Creates a new operator object. | |
| Operator (const Operator &object)=delete | |
| Disabled copy constructor. | |
| Operator & | operator= (const Operator &object)=delete |
| Disabled copy operator. | |
Protected Attributes | |
| Layer & | layer_ |
| Optimizer layer. | |
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.