8#ifndef META_OCEAN_CV_SYNTHESIS_OPTIMIZER_F_H
9#define META_OCEAN_CV_SYNTHESIS_OPTIMIZER_F_H
39 static inline std::vector<Scalar> calculateSearchRadii(
const unsigned int radii,
const unsigned int width,
const unsigned int height);
60 OCEAN_SUPPRESS_UNUSED_WARNING(
layerF_);
65 ocean_assert(radii != 0u);
66 ocean_assert(width != 0u && height != 0u);
68 std::vector<Scalar> result(radii);
70 const Scalar maxWidthHeight =
Scalar(max(width, height));
72 for (
unsigned int n = 0; n < radii; ++n)
This class implements the base class for all synthesis layers with float accuracy.
Definition LayerF.h:29
This class is the base class for all image synthesis operators.
Definition Operator.h:28
This class is the base class for all optimizers that use a mapping with float accuracy.
Definition OptimizerF.h:29
LayerF & layerF_
Specialized layer reference.
Definition OptimizerF.h:52
OptimizerF(LayerF &layer)
Creates a new optimizer object.
Definition OptimizerF.h:55
static std::vector< Scalar > calculateSearchRadii(const unsigned int radii, const unsigned int width, const unsigned int height)
Calculates the search radii for the mapping optimization.
Definition OptimizerF.h:63
This class is the base class for all synthesis optimizers.
Definition Optimizer.h:30
float Scalar
Definition of a scalar type.
Definition Math.h:129
The namespace covering the entire Ocean framework.
Definition Accessor.h:15